mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
8d073d8eb7
- Switch to USES=localbase - Switch to new test framework - Switch to options helpers - Cosmetic fixes Approved by: portmgr blanket
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# Created by: thierry@pompo.net
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= uniutils
|
|
PORTVERSION= 2.27
|
|
PORTREVISION= 2
|
|
CATEGORIES= sysutils textproc
|
|
MASTER_SITES= http://billposer.org/Software/Downloads/
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
COMMENT= Unicode Description Utilities
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
RUN_DEPENDS= ascii2binary:converters/ascii2binary
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= gettext localbase
|
|
|
|
LIBS+= -lintl
|
|
|
|
TESTFILES= Test1.ann Test1.u Test2.ann Test2.u Test3.ann Test3.u \
|
|
Test4.ann Test4.u Test5.ann Test5.u
|
|
PORTDOCS= AUTHORS NEWS README
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
pre-configure:
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} -e 's|TestData|${EXAMPLESDIR}|' ${WRKSRC}/README
|
|
|
|
do-test:
|
|
(cd ${WRKSRC} && \
|
|
./unidesc TestData/Test1.u && \
|
|
./uniname TestData/Test1.ann)
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
post-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${TESTFILES:S|^|${WRKSRC}/TestData/|} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|