diff --git a/devel/Makefile b/devel/Makefile index 992ccf0f6204..8b8c9ed4cda2 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -482,6 +482,7 @@ SUBDIR += gnome-vfsmm SUBDIR += gnome2-hacker-tools SUBDIR += gnucflow + SUBDIR += gnulib SUBDIR += gnulibiberty SUBDIR += gnustep SUBDIR += gnustep-make diff --git a/devel/gnulib/Makefile b/devel/gnulib/Makefile new file mode 100644 index 000000000000..62958bcc52a3 --- /dev/null +++ b/devel/gnulib/Makefile @@ -0,0 +1,53 @@ +# New ports collection makefile for: gnulib +# Date created: 20 March 2010 +# Whom: Johans van Selst +# +# $FreeBSD$ +# + +PORTNAME= gnulib +PORTVERSION= 20100308 +CATEGORIES= devel +MASTER_SITES= http://erislabs.net/ianb/projects/gnulib/ +DISTNAME= ${PORTNAME}-${PORTVERSION}-stable + +MAINTAINER= johans@FreeBSD.org +COMMENT= GNU portability library + +RUN_DEPENDS= bash:${PORTSDIR}/shells/bash + +USE_GMAKE= yes +USE_PERL5_RUN= yes + +PLIST_FILES= bin/check-module bin/gnulib-tool +INFO= ${PORTNAME} +PORTDATA= * + +.ifndef NOPORTDOCS +PLIST_DIRS+= %%DOCSDIR%% +PLIST_FILES+= %%DOCSDIR%%/${PORTNAME}.html +.endif + +post-patch: + ${REINPLACE_CMD} -e 's/date -u.*/stat -f %Sa -t "@set UPDATED %F %T" `ls -t $$^ | sed 1q` > $$@/' ${WRKSRC}/doc/Makefile + ${REINPLACE_CMD} -e '1s@/bin/sh@${LOCALBASE}/bin/bash@' \ + ${WRKSRC}/gnulib-tool + +do-build: + cd ${WRKSRC} && ${GMAKE} -C doc info html + +do-install: + ${MKDIR} ${DATADIR} ${PREFIX}/${INFO_PATH} + for p in check-module gnulib-tool;\ + do ${INSTALL_SCRIPT} ${WRKSRC}/$$p ${DATADIR};\ + cd ${PREFIX}/bin && ${LN} -s ${DATADIR}/$$p;\ + done + cd ${WRKSRC} && \ + ${CP} -a build-aux config doc lib m4 modules tests ${DATADIR}/ + ${INSTALL_DATA} ${WRKSRC}/doc/gnulib.info ${PREFIX}/${INFO_PATH} +.ifndef NOPORTDOCS + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/gnulib.html ${DOCSDIR} +.endif + +.include diff --git a/devel/gnulib/distinfo b/devel/gnulib/distinfo new file mode 100644 index 000000000000..4b9f4fe2c78b --- /dev/null +++ b/devel/gnulib/distinfo @@ -0,0 +1,3 @@ +MD5 (gnulib-20100308-stable.tar.gz) = 3a0ebdd0d43f3c175fa8ae3504fe3983 +SHA256 (gnulib-20100308-stable.tar.gz) = b16a791294ff5b260b5218edd997e8900403c169fa27ee3101a190018c16ad4a +SIZE (gnulib-20100308-stable.tar.gz) = 4157001 diff --git a/devel/gnulib/pkg-descr b/devel/gnulib/pkg-descr new file mode 100644 index 000000000000..1c03db466780 --- /dev/null +++ b/devel/gnulib/pkg-descr @@ -0,0 +1,14 @@ +Gnulib, the GNU portability library, offers a macro system and C +declarations and definitions for commonly-used API elements and +abstracted system behaviors. It can be used to improve portability and +other functionality in your programs. + +Gnulib takes a different approach than libiberty. Gnulib components are +intended to be shared at the source level, rather than being a library that +gets built, installed, and linked against. Thus, there is no distribution +tarball; the idea is to copy files from Gnulib into your own source tree. + +However, there are bimonthly stable snapshots of the Gnulib codebase +published at http://erislabs.net/ianb/projects/gnulib/ + +WWW: http://www.gnu.org/software/gnulib/