moreutils: cosmetic reorganization (following doc/Makefile-example practices)

This commit is contained in:
Leonardo Taccari 2017-05-09 09:26:27 +02:00
parent 74308b2b7c
commit 492304fef2

View file

@ -11,19 +11,14 @@ HOMEPAGE= https://joeyh.name/code/moreutils/
COMMENT= Additional Unix utilities
LICENSE= gnu-gpl-v2
USE_TOOLS+= gmake pod2man perl:run
BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
BUILD_DEPENDS+= libxml2-[0-9]*:../../textproc/libxml2
BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
DEPENDS+= p5-IPC-Run-[0-9]*:../../devel/p5-IPC-Run
SUBST_CLASSES+= pkgmandir
SUBST_STAGE.pkgmandir= pre-configure
SUBST_FILES.pkgmandir= Makefile
SUBST_MESSAGE.pkgmandir= Fixing man page installation.
SUBST_SED.pkgmandir= -e 's,share/man,${PKGMANDIR},'
USE_TOOLS+= gmake pod2man perl:run
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
REPLACE_PERL+= chronic
REPLACE_PERL+= combine
@ -32,6 +27,12 @@ REPLACE_PERL+= vidir
REPLACE_PERL+= vipe
REPLACE_PERL+= zrun
SUBST_CLASSES+= pkgmandir
SUBST_STAGE.pkgmandir= pre-configure
SUBST_FILES.pkgmandir= Makefile
SUBST_MESSAGE.pkgmandir= Fixing man page installation.
SUBST_SED.pkgmandir= -e 's,share/man,${PKGMANDIR},'
MAKE_ENV+= \
PREFIX=${PREFIX} \
CFLAGS=${CFLAGS:Q} \
@ -40,6 +41,4 @@ MAKE_ENV+= \
INSTALL_MAN=${INSTALL_MAN:Q} \
INSTALL_SCRIPT=${INSTALL_SCRIPT:Q}
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
.include "../../mk/bsd.pkg.mk"