From 34993535fdf774466fc0362a9965842618bc6a0e Mon Sep 17 00:00:00 2001 From: landry Date: Sat, 5 Sep 2009 08:44:15 +0000 Subject: [PATCH] Import podbrowser 0.12 : PodBrowser is a graphical documentation browser for Perl. You can view the documentation for Perl's builtin functions, its "perldoc" pages, pragmatic modules and the default and user-installed modules. --- x11/podbrowser/Makefile | 24 +++++++++++++++ x11/podbrowser/distinfo | 5 ++++ x11/podbrowser/patches/patch-Makefile | 34 ++++++++++++++++++++++ x11/podbrowser/patches/patch-podbrowser_pl | 12 ++++++++ x11/podbrowser/pkg/DESCR | 3 ++ x11/podbrowser/pkg/PLIST | 16 ++++++++++ 6 files changed, 94 insertions(+) create mode 100644 x11/podbrowser/Makefile create mode 100644 x11/podbrowser/distinfo create mode 100644 x11/podbrowser/patches/patch-Makefile create mode 100644 x11/podbrowser/patches/patch-podbrowser_pl create mode 100644 x11/podbrowser/pkg/DESCR create mode 100644 x11/podbrowser/pkg/PLIST diff --git a/x11/podbrowser/Makefile b/x11/podbrowser/Makefile new file mode 100644 index 00000000000..660f6daa31b --- /dev/null +++ b/x11/podbrowser/Makefile @@ -0,0 +1,24 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/09/05 08:44:15 landry Exp $ + +COMMENT = graphical documentation browser for Perl + +DISTNAME = podbrowser-0.12 +CATEGORIES = devel x11 + +HOMEPAGE = http://jodrell.net/projects/podbrowser +MASTER_SITES = http://jodrell.net/files/podbrowser/ + +# GPLv2 +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM = Yes +PERMIT_DISTFILES_FTP = Yes + +RUN_DEPENDS = ::x11/p5-Gtk2-GladeXML \ + ::devel/p5-Locale-gettext \ + ::x11/p5-Gtk2-Ex-PodViewer \ + ::www/p5-HTML-Parser \ + ::devel/desktop-file-utils \ + ::devel/xdg-utils + +.include diff --git a/x11/podbrowser/distinfo b/x11/podbrowser/distinfo new file mode 100644 index 00000000000..61b33adba30 --- /dev/null +++ b/x11/podbrowser/distinfo @@ -0,0 +1,5 @@ +MD5 (podbrowser-0.12.tar.gz) = JiDtS9j8LR/LxDL+5pTIyA== +RMD160 (podbrowser-0.12.tar.gz) = bc1ogcwrTE4P9RVWzxKx0QxmwWk= +SHA1 (podbrowser-0.12.tar.gz) = QoxxZ9B/MIT7mfzvu6mzGbBwJpQ= +SHA256 (podbrowser-0.12.tar.gz) = 1J32R5MFxu9dF8aXOg1e/uk1N3FFek68UQ3Ujyr2B/U= +SIZE (podbrowser-0.12.tar.gz) = 81394 diff --git a/x11/podbrowser/patches/patch-Makefile b/x11/podbrowser/patches/patch-Makefile new file mode 100644 index 00000000000..618de1a60df --- /dev/null +++ b/x11/podbrowser/patches/patch-Makefile @@ -0,0 +1,34 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2009/09/05 08:44:15 landry Exp $ +--- Makefile.orig Mon Sep 17 19:36:17 2007 ++++ Makefile Fri Sep 4 04:04:45 2009 +@@ -1,10 +1,10 @@ + # $Id: patch-Makefile,v 1.1.1.1 2009/09/05 08:44:15 landry Exp $ + NAME=podbrowser +-PREFIX=/usr/local ++PREFIX?=/usr/local + BINDIR=$(PREFIX)/bin + DATADIR=$(PREFIX)/share + ICONDIR=$(DATADIR)/icons/hicolor/48x48/apps +-MANDIR=$(DATADIR)/man/man1 ++MANDIR=$(PREFIX)/man/man1 + + all: podbrowser + +@@ -12,7 +12,7 @@ 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 ++ pod2man $(NAME).pl > build/$(NAME).1 + + install: + mkdir -p $(BINDIR) \ +@@ -23,7 +23,7 @@ install: + install -m 0644 $(NAME).glade $(DATADIR)/$(NAME)/ + install -m 0644 $(NAME).png $(ICONDIR)/ + install -m 0644 $(NAME).desktop $(DATADIR)/applications/ +- install -m 0644 build/$(NAME).1.gz $(MANDIR)/ ++ install -m 0644 build/$(NAME).1 $(MANDIR)/ + install -m 0755 build/$(NAME) $(BINDIR)/$(NAME) + install -m 0755 html2ps-$(NAME) $(BINDIR)/html2ps-$(NAME) + diff --git a/x11/podbrowser/patches/patch-podbrowser_pl b/x11/podbrowser/patches/patch-podbrowser_pl new file mode 100644 index 00000000000..47d3ad5ad47 --- /dev/null +++ b/x11/podbrowser/patches/patch-podbrowser_pl @@ -0,0 +1,12 @@ +$OpenBSD: patch-podbrowser_pl,v 1.1.1.1 2009/09/05 08:44:15 landry Exp $ +--- podbrowser.pl.orig Fri Sep 4 04:15:06 2009 ++++ podbrowser.pl Fri Sep 4 04:15:13 2009 +@@ -56,7 +56,7 @@ textdomain(lc($NAME)); + } + + ### bits we'll be reusing: +-chomp(my $OPENER = `which gnome-open 2> /dev/null`); ++chomp(my $OPENER = `which xdg-open 2> /dev/null`); + my $APP = Gtk2::GladeXML->new($GLADE_FILE); + my $THEME = get_an_icon_theme(); + my $TIPS = Gtk2::Tooltips->new; diff --git a/x11/podbrowser/pkg/DESCR b/x11/podbrowser/pkg/DESCR new file mode 100644 index 00000000000..9b9d4c0ded8 --- /dev/null +++ b/x11/podbrowser/pkg/DESCR @@ -0,0 +1,3 @@ +PodBrowser is a documentation browser for Perl. You can view the +documentation for Perl's builtin functions, its "perldoc" pages, +pragmatic modules and the default and user-installed modules. diff --git a/x11/podbrowser/pkg/PLIST b/x11/podbrowser/pkg/PLIST new file mode 100644 index 00000000000..2d307e28f47 --- /dev/null +++ b/x11/podbrowser/pkg/PLIST @@ -0,0 +1,16 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2009/09/05 08:44:15 landry Exp $ +bin/html2ps-podbrowser +bin/podbrowser +@man man/man1/podbrowser.1 +share/applications/podbrowser.desktop +share/icons/ +share/icons/hicolor/ +share/icons/hicolor/48x48/ +share/icons/hicolor/48x48/apps/ +share/icons/hicolor/48x48/apps/podbrowser.png +share/podbrowser/ +share/podbrowser/podbrowser.glade +@exec %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor 2> /dev/null || true +@unexec %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor 2> /dev/null || true +@exec %D/bin/update-desktop-database +@unexec %D/bin/update-desktop-database