aboutsummaryrefslogtreecommitdiff
path: root/devel/libgutenfetch
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-07-20 14:36:11 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-07-20 14:36:11 +0000
commitf9335e6f4cf289c50b5e03608a0e58971bea2013 (patch)
tree7128d1b78b021a88d86f9450e05a52498088239b /devel/libgutenfetch
parent38a1453c27812995590028deb0f488ba7cd8e78f (diff)
downloadports-f9335e6f4cf289c50b5e03608a0e58971bea2013.tar.gz
ports-f9335e6f4cf289c50b5e03608a0e58971bea2013.zip
Notes
Diffstat (limited to 'devel/libgutenfetch')
-rw-r--r--devel/libgutenfetch/Makefile50
-rw-r--r--devel/libgutenfetch/distinfo2
-rw-r--r--devel/libgutenfetch/files/patch-src-libgutenfetch_detail.c17
-rw-r--r--devel/libgutenfetch/pkg-descr9
4 files changed, 78 insertions, 0 deletions
diff --git a/devel/libgutenfetch/Makefile b/devel/libgutenfetch/Makefile
new file mode 100644
index 000000000000..b1ff59dcab26
--- /dev/null
+++ b/devel/libgutenfetch/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: libgutenfetch
+# Date created: 17 July 2004
+# Whom: Russell Francis <johntabularasa@users.sf.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libgutenfetch
+PORTVERSION= 1.2
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= libgutenfetch
+
+MAINTAINER= johntabularasa@users.sf.net
+COMMENT= A library that allows application developers to connect to PG
+
+LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl:install
+
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
+USE_GMAKE= yes
+USE_BZIP2= yes
+
+MAN3= libgutenfetch.3 \
+ gutenfetch_version.3 \
+ gutenfetch_shutdown.3 \
+ gutenfetch_set_active_server_full.3 \
+ gutenfetch_set_active_server.3 \
+ gutenfetch_new_server.3 \
+ gutenfetch_list_servers.3 \
+ gutenfetch_is_threadsafe.3 \
+ gutenfetch_init.3 \
+ gutenfetch_get_aussie_server.3 \
+ gutenfetch_get_active_server.3 \
+ gutenfetch_free_server.3 \
+ gutenfetch_free_servers.3 \
+ gutenfetch_duplicate_server.3
+
+PLIST_FILES= include/gutenfetch.h \
+ lib/libgutenfetch.a \
+ lib/libgutenfetch.la \
+ lib/libgutenfetch.so \
+ lib/libgutenfetch.so.0 \
+ share/libgutenfetch/servers.txt
+
+PLIST_DIRS= share/libgutenfetch
+
+.include <bsd.port.mk>
diff --git a/devel/libgutenfetch/distinfo b/devel/libgutenfetch/distinfo
new file mode 100644
index 000000000000..335d379d7fdb
--- /dev/null
+++ b/devel/libgutenfetch/distinfo
@@ -0,0 +1,2 @@
+MD5 (libgutenfetch-1.2.tar.bz2) = 70d6ec0f682fde0f4f3b15f28aa354d7
+SIZE (libgutenfetch-1.2.tar.bz2) = 208312
diff --git a/devel/libgutenfetch/files/patch-src-libgutenfetch_detail.c b/devel/libgutenfetch/files/patch-src-libgutenfetch_detail.c
new file mode 100644
index 000000000000..e5cdf137095d
--- /dev/null
+++ b/devel/libgutenfetch/files/patch-src-libgutenfetch_detail.c
@@ -0,0 +1,17 @@
+--- src/libgutenfetch_detail.c.orig Sat Jul 3 21:06:50 2004
++++ src/libgutenfetch_detail.c Tue Jul 20 15:19:40 2004
+@@ -92,10 +92,12 @@
+ int
+ directory_data_compare(const void *a, const void *b, void *param)
+ {
++ directory_data_t *da;
++ directory_data_t *db;
+ assert( a != NULL );
+ assert( b != NULL );
+- directory_data_t *da = (directory_data_t*)a;
+- directory_data_t *db = (directory_data_t*)b;
++ da = (directory_data_t*)a;
++ db = (directory_data_t*)b;
+ return strcmp(da->directory, db->directory);
+ }
+
diff --git a/devel/libgutenfetch/pkg-descr b/devel/libgutenfetch/pkg-descr
new file mode 100644
index 000000000000..a34e68e3fcd3
--- /dev/null
+++ b/devel/libgutenfetch/pkg-descr
@@ -0,0 +1,9 @@
+This is a port of libgutenfetch, which provides a clean and consistent
+interface for application developers to write clients which list and
+fetch free electronic texts from any number of Project Gutenberg servers
+throughout the world.
+
+WWW: http://sourceforge.net/projects/libgutenfetch/
+
+- Russell Francis
+johntabularasa@users.sf.net