2013-03-18 12:40:04 +01:00
|
|
|
# Created by: Cyrille Lefevre <clefevre@citeweb.net>
|
2000-12-19 09:13:28 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2001-02-03 13:06:11 +01:00
|
|
|
PORTNAME= sed
|
2013-06-24 20:54:47 +02:00
|
|
|
PORTVERSION= 4.2.2
|
2000-12-19 09:13:28 +01:00
|
|
|
CATEGORIES= textproc
|
2013-06-24 20:54:47 +02:00
|
|
|
MASTER_SITES= GNU
|
2004-01-27 19:50:06 +01:00
|
|
|
PKGNAMEPREFIX= g
|
2000-12-19 09:13:28 +01:00
|
|
|
|
2013-06-24 20:54:47 +02:00
|
|
|
MAINTAINER= johans@FreeBSD.org
|
2003-02-21 14:42:50 +01:00
|
|
|
COMMENT= The GNU stream editor
|
2001-02-03 13:06:11 +01:00
|
|
|
|
2000-12-19 09:13:28 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-12-02 18:44:28 +01:00
|
|
|
CONFIGURE_ENV+= MAKEINFO="makeinfo --no-split"
|
2000-12-19 09:13:28 +01:00
|
|
|
|
2014-06-25 10:58:09 +02:00
|
|
|
USES= charsetfix makeinfo gmake
|
2001-02-03 13:06:11 +01:00
|
|
|
PATCH_SUBDIRS= . doc lib sed
|
2007-03-31 21:56:19 +02:00
|
|
|
DATADIR= ${PREFIX}/share/${PKGBASE}
|
2004-01-27 19:50:06 +01:00
|
|
|
SAMP_FILES= binary*.sed dc.sed
|
2007-03-31 21:56:19 +02:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGBASE}
|
2005-12-02 18:44:28 +01:00
|
|
|
PORTDOCS= AUTHORS BUGS COPYING COPYING.DOC NEWS README THANKS
|
2007-03-31 21:56:19 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
|
2010-06-08 08:45:21 +02:00
|
|
|
INFO= sed
|
2003-05-19 03:46:43 +02:00
|
|
|
|
2013-06-24 20:54:47 +02:00
|
|
|
OPTIONS_DEFINE= NLS DOCS
|
2014-06-24 18:38:56 +02:00
|
|
|
OPTIONS_SUB= yes
|
2013-06-24 20:54:47 +02:00
|
|
|
|
2014-06-24 18:38:56 +02:00
|
|
|
NLS_USES= gettext iconv
|
2014-06-24 18:41:08 +02:00
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
2010-06-08 08:45:21 +02:00
|
|
|
|
2005-12-02 18:44:28 +01:00
|
|
|
post-patch:
|
2006-08-08 10:09:32 +02:00
|
|
|
@${REINPLACE_CMD} 's,^\* sed:,* GNU sed:,' \
|
2005-12-02 18:44:28 +01:00
|
|
|
${WRKSRC}/doc/config.texi
|
2006-08-08 10:09:32 +02:00
|
|
|
@${REINPLACE_CMD} "s|#include <alloca.h>||" ${WRKSRC}/lib/regex_internal.h
|
2001-02-03 13:06:11 +01:00
|
|
|
|
2005-12-02 18:44:28 +01:00
|
|
|
post-configure:
|
2001-02-03 13:06:11 +01:00
|
|
|
.for subdir in ${PATCH_SUBDIRS}
|
2005-12-02 18:44:28 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|s,x,x,|s,^,g,|' \
|
|
|
|
-e 's|^doc_DATA|#doc_DATA|' \
|
|
|
|
${WRKSRC}/${subdir}/Makefile
|
2001-02-03 13:06:11 +01:00
|
|
|
.endfor
|
|
|
|
|
2005-12-02 18:44:28 +01:00
|
|
|
post-install:
|
2013-10-07 07:02:18 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2005-12-02 18:44:28 +01:00
|
|
|
.for f in ${SAMP_FILES}
|
2013-10-07 07:02:18 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/testsuite/${f} ${STAGEDIR}${EXAMPLESDIR}
|
2003-05-19 03:46:43 +02:00
|
|
|
.endfor
|
2013-10-07 07:02:18 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2005-12-02 18:44:28 +01:00
|
|
|
.for f in ${PORTDOCS}
|
2013-10-07 07:02:18 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
2001-02-03 13:06:11 +01:00
|
|
|
.endfor
|
2000-12-19 09:13:28 +01:00
|
|
|
|
2003-02-04 13:29:28 +01:00
|
|
|
# Maintainer only
|
|
|
|
test:
|
|
|
|
@cd ${WRKSRC}/testsuite; ${MAKE} check
|
|
|
|
|
2014-06-24 18:38:56 +02:00
|
|
|
.include <bsd.port.mk>
|