- Upgrade to 2.27

Changelog at <http://billposer.org/Software/uniutils.html#changelog>

- Use PORTEXAMPLES;

- Add some regression-tests.
This commit is contained in:
Thierry Thomas 2009-02-21 10:55:07 +00:00
parent b7a0d13a40
commit cec54d3bac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=228767
3 changed files with 27 additions and 19 deletions

View file

@ -6,8 +6,7 @@
#
PORTNAME= uniutils
PORTVERSION= 2.26
PORTREVISION= 1
PORTVERSION= 2.27
CATEGORIES= sysutils textproc
MASTER_SITES= http://billposer.org/Software/Downloads/
@ -21,23 +20,30 @@ CONFIGURE_ENV= CPPFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \
LIBS="-lintl"
USE_GETTEXT= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
TESTFILES= Test1.ann Test1.u Test2.ann Test2.u Test3.ann Test3.u \
Test4.ann Test4.u
Test4.ann Test4.u Test5.ann Test5.u
PORTDOCS= AUTHORS NEWS README
MAN1= ExplicateUTF8.1 unidesc.1 unifuzz.1 unihist.1 uniname.1 \
unireverse.1
pre-configure:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|TestData|${EXAMPLESDIR}|' ${WRKSRC}/README
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile.in
${REINPLACE_CMD} -e 's|TestData|${EXAMPLESDIR}|' ${WRKSRC}/README
regression-test:
(cd ${WRKSRC} && \
./unidesc TestData/Test1.u && \
./uniname TestData/Test1.ann)
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${TESTFILES:S|^|${WRKSRC}/TestData/|} ${EXAMPLESDIR}
.endif

View file

@ -1,3 +1,3 @@
MD5 (uniutils-2.26.tar.gz) = e5e30d28ee07724d5547c3b1e953b437
SHA256 (uniutils-2.26.tar.gz) = 6e33cb11676a590f2a9fe6eca25b9eb34116e8289549b8529f70f5cc849a920d
SIZE (uniutils-2.26.tar.gz) = 262280
MD5 (uniutils-2.27.tar.gz) = 0f28ed8a756cd1a792310fd97e65ac52
SHA256 (uniutils-2.27.tar.gz) = c662a9215a3a67aae60510f679135d479dbddaf90f5c85a3c5bab1c89da61596
SIZE (uniutils-2.27.tar.gz) = 274303

View file

@ -5,12 +5,14 @@ bin/unihist
bin/uniname
bin/unireverse
bin/utf8lookup
%%PORTDOCS%%%%EXAMPLESDIR%%/Test1.ann
%%PORTDOCS%%%%EXAMPLESDIR%%/Test1.u
%%PORTDOCS%%%%EXAMPLESDIR%%/Test2.ann
%%PORTDOCS%%%%EXAMPLESDIR%%/Test2.u
%%PORTDOCS%%%%EXAMPLESDIR%%/Test3.ann
%%PORTDOCS%%%%EXAMPLESDIR%%/Test3.u
%%PORTDOCS%%%%EXAMPLESDIR%%/Test4.ann
%%PORTDOCS%%%%EXAMPLESDIR%%/Test4.u
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Test1.ann
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Test1.u
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Test2.ann
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Test2.u
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Test3.ann
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Test3.u
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Test4.ann
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Test4.u
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Test5.ann
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Test5.u
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%