aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-12-26 12:30:49 +0800
committerwill <will@FreeBSD.org>2000-12-26 12:30:49 +0800
commita4d7b2b4628b4f1f11355809ed2b7299a836cadd (patch)
tree2b0a94efca33bb3e24bc01a1b9cd52798659d12f
parentd8ca08a195290a5fd7a6e0d2136a429ddbee1505 (diff)
downloadfreebsd-ports-graphics-a4d7b2b4628b4f1f11355809ed2b7299a836cadd.tar.gz
freebsd-ports-graphics-a4d7b2b4628b4f1f11355809ed2b7299a836cadd.tar.zst
freebsd-ports-graphics-a4d7b2b4628b4f1f11355809ed2b7299a836cadd.zip
Add gutenbook 0.1.10, a product of Project Gutenberg, which aims to provide
a more intuitive way to read etexts on a computer. This port includes a perl module to read etexts from Project Gutenberg, as well as a gutenbook executable for reading actual etexts. PR: 23715 Submitted by: Jeremy Shaffner <jeremy@external.org>
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/gutenbook/Makefile51
-rw-r--r--textproc/gutenbook/distinfo1
-rw-r--r--textproc/gutenbook/files/patch-PGB.pm13
-rw-r--r--textproc/gutenbook/pkg-comment1
-rw-r--r--textproc/gutenbook/pkg-descr16
-rw-r--r--textproc/gutenbook/pkg-message5
-rw-r--r--textproc/gutenbook/pkg-plist11
8 files changed, 99 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index b808550d6d3..5acd0912d40 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -41,6 +41,7 @@
SUBDIR += grap
SUBDIR += gsed
SUBDIR += gtkdiff
+ SUBDIR += gutenbook
SUBDIR += gxditview
SUBDIR += hevea
SUBDIR += htdig
diff --git a/textproc/gutenbook/Makefile b/textproc/gutenbook/Makefile
new file mode 100644
index 00000000000..95f6411388a
--- /dev/null
+++ b/textproc/gutenbook/Makefile
@@ -0,0 +1,51 @@
+# New ports collection makefile for: gutenbook
+# Date created: 21 December 2000
+# Whom: Jeremy Shaffner <jeremy@external.org>
+#
+# $FreeBSD$
+
+PORTNAME= gutenbook
+PORTVERSION= 0.1.10
+CATEGORIES= textproc perl5
+MASTER_SITES= http://www.gutenbook.org/download/
+
+MAINTAINER= jeremy@external.org
+
+RUN_DEPENDS= zip:${PORTSDIR}/archivers/zip \
+ ${site_perl}/${PERL_ARCH}/Date/Calc.pm:${PORTSDIR}/devel/p5-Date-Calc \
+ ${site_perl}/${PERL_ARCH}/HTML/Parser.pm:${PORTSDIR}/www/p5-HTML-Parser \
+ ${site_perl}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable \
+ ${site_perl}/${PERL_ARCH}/Gtk.pm:${PORTSDIR}/x11-toolkits/p5-Gtk \
+ ${site_perl}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww \
+ ${site_perl}/URI/URL.pm:${PORTSDIR}/net/p5-URI
+
+site_perl= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
+
+USE_GTK= YES
+NO_BUILD= YES
+
+MODULES= Etext.pm File.pm Index.pm Network.pm PropList.pm
+
+post-patch:
+ ${SED} "s#%%LOCALBASE%%#${LOCALBASE}#g" ${WRKSRC}/PGB.pm > ${WRKSRC}/tmp
+ ${MV} ${WRKSRC}/tmp ${WRKSRC}/PGB.pm
+
+do-install:
+ @${INSTALL_SCRIPT} ${WRKSRC}/gutenbook ${LOCALBASE}/bin/gutenbook
+ @${INSTALL_SCRIPT} ${WRKSRC}/PGB.pm ${site_perl}/PGB.pm
+ @${MKDIR} ${site_perl}/PGB
+.for module in ${MODULES}
+ @${INSTALL_SCRIPT} ${WRKSRC}/PGB/${module} ${site_perl}/PGB
+.endfor
+.if !defined(NOPORTDCS)
+ @${MKDIR} ${LOCALBASE}/share/doc/gutenbook
+ @${INSTALL_DATA} ${WRKSRC}/MANUAL ${LOCALBASE}/share/doc/gutenbook
+ @${INSTALL_DATA} ${WRKSRC}/gutenbook.spec ${LOCALBASE}/share/doc/gutenbook
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${CAT} ${PKGMESSAGE} | ${SED} 's#/usr/local#${PREFIX}#g'
+.endif
+
+.include <bsd.port.mk>
diff --git a/textproc/gutenbook/distinfo b/textproc/gutenbook/distinfo
new file mode 100644
index 00000000000..9719d318c14
--- /dev/null
+++ b/textproc/gutenbook/distinfo
@@ -0,0 +1 @@
+MD5 (gutenbook-0.1.10.tar.gz) = 211e5a6936710218f9be9b09b3ef1e2f
diff --git a/textproc/gutenbook/files/patch-PGB.pm b/textproc/gutenbook/files/patch-PGB.pm
new file mode 100644
index 00000000000..e610e25961a
--- /dev/null
+++ b/textproc/gutenbook/files/patch-PGB.pm
@@ -0,0 +1,13 @@
+--- PGB.pm.orig Thu Dec 21 03:42:50 2000
++++ PGB.pm Thu Dec 21 03:43:31 2000
+@@ -42,8 +42,8 @@
+ # $http_url = "http://www.viemeister.com/pub/gutenberg/";
+ # $http_url = "http://metalab.unc.edu/pub/docs/books/gutenberg/";
+ # $http_url = "http://www.prairienet.org/gutenberg/";
+-$zip = "/usr/bin/zip";
+-$unzip = "/usr/bin/unzip";
++$zip = "%%LOCALBASE%%/bin/zip";
++$unzip = "%%LOCALBASE%%/bin/unzip";
+
+ $index_file = "index";
+ $prefs_file = "preferences";
diff --git a/textproc/gutenbook/pkg-comment b/textproc/gutenbook/pkg-comment
new file mode 100644
index 00000000000..d7c985b060b
--- /dev/null
+++ b/textproc/gutenbook/pkg-comment
@@ -0,0 +1 @@
+GTK+ based reader for Project Gutenberg Etexts
diff --git a/textproc/gutenbook/pkg-descr b/textproc/gutenbook/pkg-descr
new file mode 100644
index 00000000000..0e5b37110ec
--- /dev/null
+++ b/textproc/gutenbook/pkg-descr
@@ -0,0 +1,16 @@
+Gutenbook is a graphical interface for browsing, downloading and reading
+Project Gutenberg Etexts.
+
+It has the following features:
+
+Book-like pagination Etexts downloaded via HTTP as well as FTP
+Index caching and local Etext storing
+Browse-able, search-able, sort-able index
+Reads plaintext or zip'd Etexts
+User preferences interface
+Object-oriented design combining Perl and GTK+
+100% home-grown Free Software protected by the GNU GPL
+
+Project Gutenberg: http://promo.net/pg/index.html
+
+WWW: http://www.gutenbook.org
diff --git a/textproc/gutenbook/pkg-message b/textproc/gutenbook/pkg-message
new file mode 100644
index 00000000000..f005169a5d3
--- /dev/null
+++ b/textproc/gutenbook/pkg-message
@@ -0,0 +1,5 @@
+
+The manual for Gutenbook has been installed in:
+
+ /usr/local/share/doc/gutenbook
+
diff --git a/textproc/gutenbook/pkg-plist b/textproc/gutenbook/pkg-plist
new file mode 100644
index 00000000000..5e4b75fccd6
--- /dev/null
+++ b/textproc/gutenbook/pkg-plist
@@ -0,0 +1,11 @@
+bin/gutenbook
+lib/perl5/site_perl/%%PERL_VER%%/PGB.pm
+lib/perl5/site_perl/%%PERL_VER%%/PGB/Etext.pm
+lib/perl5/site_perl/%%PERL_VER%%/PGB/File.pm
+lib/perl5/site_perl/%%PERL_VER%%/PGB/Index.pm
+lib/perl5/site_perl/%%PERL_VER%%/PGB/Network.pm
+lib/perl5/site_perl/%%PERL_VER%%/PGB/PropList.pm
+share/doc/gutenbook/MANUAL
+share/doc/gutenbook/gutenbook.spec
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/PGB
+@dirrm share/doc/gutenbook