diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-doc/podbrowser |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-doc/podbrowser')
-rw-r--r-- | app-doc/podbrowser/Manifest | 7 | ||||
-rw-r--r-- | app-doc/podbrowser/files/Makefile.new | 32 | ||||
-rw-r--r-- | app-doc/podbrowser/files/missing_icon.patch | 32 | ||||
-rw-r--r-- | app-doc/podbrowser/metadata.xml | 8 | ||||
-rw-r--r-- | app-doc/podbrowser/podbrowser-0.12-r3.ebuild | 46 |
5 files changed, 125 insertions, 0 deletions
diff --git a/app-doc/podbrowser/Manifest b/app-doc/podbrowser/Manifest new file mode 100644 index 000000000000..7927294e90c2 --- /dev/null +++ b/app-doc/podbrowser/Manifest @@ -0,0 +1,7 @@ +AUX Makefile.new 982 SHA256 8d0569ff9c4cd0a94ea278a8f74a8e9510ab74f907b481c7f927e7eb68a714f1 SHA512 2d63df991fb0e23e36b08703b50f13e165ed059b22688197cb6816a7199915c7b3e46ce0b3aaf22e4c6e169a46a77b3ecf9cb8f516f42a65fc84ac16514f528d WHIRLPOOL 3e52a2acd6ff02de7bf4c30e7bdc19010e7bfd3c2093bd15e1c4647334542d264091743aec6017e80e5284562ac721a5782b566694d60e6f3876cf92827605ff +AUX missing_icon.patch 1975 SHA256 b5c8e2aa990a32188b6e0aa149246c9b81f0b7a863c70bfee103a8d8ae3a0fbb SHA512 1266f6cbed7d8bc2dcee9c39fb1259a6a78d676117b695cdd28be6f3c54ca520e33d4e42cf302cfe3c3b2c22ccde8a50f1d15275ffa9dde30e3448982c6c6ebd WHIRLPOOL cb997c3a13ccb5e1ba97fc157fbb06aeb075f11e0094842905b07d47f5077cdcf7ad8281f42570933b25a486dfacbabe7bb01595a0ed83e72ec056a789eae399 +DIST podbrowser-0.12.tar.gz 81394 SHA256 d49df6479305c6ef5d17c6973a0d5efee9353771457a4ebc510dd48f2af607f5 SHA512 ff6a734f2df8bb0913c9030fd103490e59178bc672ac1c152eb9a0c2aece82c293615cbfcc7cf99dcfe2c448bdc35d2c6fdcb9b106e958d3ffb62b2eb9372c77 WHIRLPOOL 5c0eeb6f892359da569d386a7ad0e2d442581fad9defc1d05ddbd32581565dcaf3f0ffe5110f2317c2b199fb9018d3c6d4507c3fc48d22996843526fbff4e7cb +EBUILD podbrowser-0.12-r3.ebuild 1011 SHA256 b2e8497497c97a20a7c2304825f78a0485b408ea149ec25cf474f57aeff6783b SHA512 0c5a13f51e7d5fde069cc88d9dd2567fa7b4952664050773fb5e9712807f745ea06ca3d674c1b3ca9f6a2e2caf2bb87d37946a3115a7b3ea2f341e936d7b06d1 WHIRLPOOL e690d6c86c51ef448367606313529797e02103da0cc7d6a5d5de0342537a113f1d6468d91d902c28dc382d94e4ef22733930c34eb85ca66136eb36b98e1f6299 +MISC ChangeLog 2487 SHA256 39ab6ac1e25305fb5f9d6f83c6f47e363b3801b52dceee48b3e0a8f09ecddeda SHA512 68473b255e6612053d8e249828acb01e60c12144164126273ed1f464626ff0833b7b851af7f4817c0ca0fd816279f49b63a9e157e24aa0fb01d5617ba721de0d WHIRLPOOL f0ce65bed95c2319e733c1d1175b7ee19d364abdf73b191d7ee2a6898132553616b1e79d17fe8d4123aaee5d3c1718cee3aecd8000d90793f62dabf0765794e7 +MISC ChangeLog-2015 2319 SHA256 5660c1aff19c31f450952917e2298ee4c57e6758de58bb8921bc22dda4756fc0 SHA512 21f9327e97aed5fdc86484ecaa5f7e6ddc817f569d098517b30585864533d78ddc55bef0c8b6e5dcfb45da96dcfeb18fb2f5222a1fe10629f69299f92d005f6d WHIRLPOOL 2d40b93c0a0f29ad590f969b9ab8683d310d9510ef7dc6c5a5844690e0286c210c8d95f457da21c4b1409c329fef2ae8924867ae5fa7806a06a28442da387345 +MISC metadata.xml 247 SHA256 27f3a316ecc7f285838d28af09f1d1b76398615a5aaee404214aa9b1fb61a7fd SHA512 9bd9ddeb07e0644027c9a1dca33f0704de6062bc6b17333adde82a177991f35265f90e1b623e3a6288fedd729597921f48e4fda17fb8d402b1b2f3fc73c6d693 WHIRLPOOL 9a6451451b71a7b374696d841572b5d2dca769ec6bda12f582659e77274cabb0b9fed82e107a870cb9025e566b4b13cc51049c98068e137ce8c7739dacd649c3 diff --git a/app-doc/podbrowser/files/Makefile.new b/app-doc/podbrowser/files/Makefile.new new file mode 100644 index 000000000000..877b2c9a9233 --- /dev/null +++ b/app-doc/podbrowser/files/Makefile.new @@ -0,0 +1,32 @@ +# $Id: Makefile,v 1.4 2005/10/05 10:07:40 jodrell Exp $ +NAME=podbrowser +PREFIX=/usr/local +BINDIR=$(PREFIX)/bin +DATADIR=$(PREFIX)/share +ICONDIR=$(DATADIR)/icons/hicolor/48x48/apps +MANDIR=$(DATADIR)/man/man1 +DESTDIR= + +all: podbrowser + +podbrowser: + @mkdir -p build + + perl -ne 's!\@PREFIX\@!$(PREFIX)!g ; s!\@LIBDIR\@!$(LIBDIR)!g ; print' < $(NAME).pl > build/$(NAME) + pod2man $(NAME).pl | gzip -c > build/$(NAME).1.gz + +install: + mkdir -p $(DESTDIR)/$(BINDIR) \ + $(DESTDIR)/$(DATADIR)/$(NAME) \ + $(DESTDIR)/$(DATADIR)/applications \ + $(DESTDIR)/$(ICONDIR) \ + $(DESTDIR)/$(MANDIR) + install -m 0644 $(NAME).glade $(DESTDIR)/$(DATADIR)/$(NAME)/ + install -m 0644 $(NAME).png $(DESTDIR)/$(ICONDIR)/ + install -m 0644 $(NAME).desktop $(DESTDIR)/$(DATADIR)/applications/ + install -m 0644 build/$(NAME).1.gz $(DESTDIR)/$(MANDIR)/ + install -m 0755 build/$(NAME) $(DESTDIR)/$(BINDIR)/$(NAME) + install -m 0755 html2ps-$(NAME) $(DESTDIR)/$(BINDIR)/html2ps-$(NAME) + +clean: + rm -rf build diff --git a/app-doc/podbrowser/files/missing_icon.patch b/app-doc/podbrowser/files/missing_icon.patch new file mode 100644 index 000000000000..55ec1223bf24 --- /dev/null +++ b/app-doc/podbrowser/files/missing_icon.patch @@ -0,0 +1,32 @@ +X-Description: Provide alternative icons if those expected not in current theme +X-Author: Jeffrey Ratcliffe <Jeffrey.Ratcliffe@gmail.com> +X-Bugs-Gentoo: https://bugs.gentoo.org/319573 + +--- podbrowser-0.12/podbrowser.pl ++++ podbrowser-0.12/podbrowser.pl +@@ -60,9 +60,22 @@ + my $APP = Gtk2::GladeXML->new($GLADE_FILE); + my $THEME = get_an_icon_theme(); + my $TIPS = Gtk2::Tooltips->new; +-my $IDX_PBF = Gtk2::Gdk::Pixbuf->new_from_file($THEME->lookup_icon('stock_bookmark', 16, 'force-svg')->get_filename)->scale_simple(16, 16, 'bilinear'); +-my $PAGE_PBF = Gtk2::Gdk::Pixbuf->new_from_file($THEME->lookup_icon('stock_new-text', 16, 'force-svg')->get_filename)->scale_simple(16, 16, 'bilinear'); +-my $FOLDER_PBF = Gtk2::Gdk::Pixbuf->new_from_file($THEME->lookup_icon('gnome-fs-directory', 16, 'force-svg')->get_filename)->scale_simple(16, 16, 'bilinear'); ++my ( $IDX_PBF, $PAGE_PBF, $FOLDER_PBF ); ++if ($THEME->lookup_icon('stock_bookmark', 16, 'force-svg')) { ++ $IDX_PBF = Gtk2::Gdk::Pixbuf->new_from_file($THEME->lookup_icon('stock_bookmark', 16, 'force-svg')->get_filename)->scale_simple(16, 16, 'bilinear'); ++} else { ++ $IDX_PBF = Gtk2::Image->new->render_icon( 'gtk-index', 'menu' ); ++} ++if ($THEME->lookup_icon('stock_new-text', 16, 'force-svg')) { ++ $PAGE_PBF = Gtk2::Gdk::Pixbuf->new_from_file($THEME->lookup_icon('stock_new-text', 16, 'force-svg')->get_filename)->scale_simple(16, 16, 'bilinear'); ++} else { ++ $PAGE_PBF = Gtk2::Image->new->render_icon( 'gtk-new', 'menu' ); ++} ++if ($THEME->lookup_icon('gnome-fs-directory', 16, 'force-svg')) { ++ $FOLDER_PBF = Gtk2::Gdk::Pixbuf->new_from_file($THEME->lookup_icon('gnome-fs-directory', 16, 'force-svg')->get_filename)->scale_simple(16, 16, 'bilinear'); ++} else { ++ $FOLDER_PBF = Gtk2::Image->new->render_icon( 'gtk-directory', 'menu' ); ++} + my $NORMAL_CURSOR = Gtk2::Gdk::Cursor->new('left_ptr'); + my $BUSY_CURSOR = Gtk2::Gdk::Cursor->new('watch'); + my $ITEMS = {}; diff --git a/app-doc/podbrowser/metadata.xml b/app-doc/podbrowser/metadata.xml new file mode 100644 index 000000000000..7faa8dfe9af4 --- /dev/null +++ b/app-doc/podbrowser/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>perl@gentoo.org</email> + <name>Gentoo Perl Project</name> +</maintainer> +</pkgmetadata> diff --git a/app-doc/podbrowser/podbrowser-0.12-r3.ebuild b/app-doc/podbrowser/podbrowser-0.12-r3.ebuild new file mode 100644 index 000000000000..1c3aa499abcb --- /dev/null +++ b/app-doc/podbrowser/podbrowser-0.12-r3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils + +DESCRIPTION="PodBrowser is a documentation browser for Perl" +HOMEPAGE="http://jodrell.net/projects/podbrowser" +SRC_URI="http://jodrell.net/files/podbrowser/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~x86" +IUSE="" +SRC_TEST="do" + +RDEPEND="dev-perl/gtk2-gladexml + dev-perl/Gtk2 + dev-perl/HTML-Parser + dev-perl/Locale-gettext + virtual/perl-Pod-Simple + dev-perl/URI + dev-perl/Gtk2-Ex-PodViewer + dev-perl/Gtk2-Ex-PrintDialog + dev-perl/Gtk2-Ex-Simple-List + || ( >=dev-lang/perl-5.16 <dev-lang/perl-5.16[-build] ) + >=x11-libs/gtk+-2.6.0:2 + >=x11-themes/gnome-icon-theme-2.10.0 + >=gnome-base/libglade-2:2.0" + +DEPEND="${RDEPEND} + sys-devel/gettext" + +src_prepare() { + epatch "${FILESDIR}"/missing_icon.patch + cp "${FILESDIR}"/Makefile.new "${S}"/Makefile || die +} + +src_compile() { + emake DESTDIR="${D}" PREFIX=/usr +} + +src_install() { + emake PREFIX=/usr DESTDIR="${D}" install +} |