Date: Sun, 6 Dec 2015 20:35:32 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r403157 - head/converters/i18ntools Message-ID: <201512062035.tB6KZWJ6046500@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Sun Dec 6 20:35:32 2015 New Revision: 403157 URL: https://svnweb.freebsd.org/changeset/ports/403157 Log: - Add LICENSE - Simplify installation - Switch to options helpers Modified: head/converters/i18ntools/Makefile Modified: head/converters/i18ntools/Makefile ============================================================================== --- head/converters/i18ntools/Makefile Sun Dec 6 20:33:23 2015 (r403156) +++ head/converters/i18ntools/Makefile Sun Dec 6 20:35:32 2015 (r403157) @@ -11,11 +11,11 @@ MASTER_SITES= ftp://ftp.whizkidtech.redp MAINTAINER= ports@FreeBSD.org COMMENT= Tools for the conversion to and from UTF-8 Unicode encoding +LICENSE= BSD2CLAUSE + LIB_DEPENDS= libutf-8.so:${PORTSDIR}/converters/libutf-8 RUN_DEPENDS= tuc:${PORTSDIR}/converters/tuc -OPTIONS_DEFINE= DOCS - DATADIR= ${PREFIX}/share/i18n DOCSDIR= ${PREFIX}/share/doc/i18n @@ -53,6 +53,8 @@ DOCFILES= fgetu8.html fputu8.html index. rfc2277.txt rfc2279.txt sgetu8.html sputu8.html utrans.html MAN1FILES= hutrans.1 ptrans.1 utrans.1 uhtrans.1 +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e \ 's|$${PREFIX}/include|$${LOCALBASE}/include| ; \ @@ -61,16 +63,18 @@ post-patch: do-install: .for f in ${BINARIES} - (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${f} ${STAGEDIR}${PREFIX}/bin) + ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin .endfor .for f in ${MAN1FILES} - (cd ${WRKSRC} && ${INSTALL_MAN} ${f} ${STAGEDIR}${MANPREFIX}/man/man1) + ${INSTALL_MAN} ${WRKSRC}/${f} ${STAGEDIR}${MANPREFIX}/man/man1 .endfor ${MKDIR} ${STAGEDIR}${DATADIR}/charmaps/binary .for f in ${CHARMAPS} - (cd ${WRKSRC}/charmaps && ${INSTALL_DATA} ${f} \ - ${STAGEDIR}${DATADIR}/charmaps/binary) + ${INSTALL_DATA} ${WRKSRC}/charmaps/${f} \ + ${STAGEDIR}${DATADIR}/charmaps/binary .endfor + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR}/tools .for f in ${DOCFILES} (cd ${WRKSRC} && ${INSTALL_DATA} ${f} ${STAGEDIR}${DOCSDIR}/tools)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512062035.tB6KZWJ6046500>