diff options
author | jhale <jhale@FreeBSD.org> | 2014-06-24 11:56:37 +0800 |
---|---|---|
committer | jhale <jhale@FreeBSD.org> | 2014-06-24 11:56:37 +0800 |
commit | c807a112c65dc8b41ba41607a124c90cdbd53be9 (patch) | |
tree | 0423ac0af16c52e245b89969038d863aa54dbf42 | |
parent | f50449288742d70ba9a02d3e21d03d17e390aec9 (diff) | |
download | freebsd-ports-gnome-c807a112c65dc8b41ba41607a124c90cdbd53be9.tar.gz freebsd-ports-gnome-c807a112c65dc8b41ba41607a124c90cdbd53be9.tar.zst freebsd-ports-gnome-c807a112c65dc8b41ba41607a124c90cdbd53be9.zip |
- Support staging
- Simplify MASTER_SITES
- Remove indefinite article from COMMENT
- USES_BZIP2 -> USE=tar:bzip2
Approved by: portmgr (blanket approval)
-rw-r--r-- | ports-mgmt/mkreadmes/Makefile | 16 | ||||
-rw-r--r-- | ports-mgmt/mkreadmes/files/patch-Makefile | 15 |
2 files changed, 22 insertions, 9 deletions
diff --git a/ports-mgmt/mkreadmes/Makefile b/ports-mgmt/mkreadmes/Makefile index 38abd1c41599..d986ffdcf14a 100644 --- a/ports-mgmt/mkreadmes/Makefile +++ b/ports-mgmt/mkreadmes/Makefile @@ -4,21 +4,19 @@ PORTNAME= mkreadmes DISTVERSION= 1.3 CATEGORIES= ports-mgmt -MASTER_SITES= SF -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SF/${PORTNAME} MAINTAINER= conrads@cox.net -COMMENT= A speedy substitute for "make readmes" +COMMENT= Speedy substitute for "make readmes" -USE_BZIP2= yes -MAN1= mkreadmes.1 -MANCOMPRESSED= maybe +USES= tar:bzip2 -PLIST_FILES= sbin/${PORTNAME} +PLIST_FILES= man/man1/mkreadmes.1.gz sbin/${PORTNAME} PORTDATA= * -NO_STAGE= yes -post-extract: +post-patch: + ${REINPLACE_CMD} -e 's|-o root -g wheel||g' ${WRKSRC}/Makefile + # adjust definition of PREFIX in mkreadmes.h only if it differs from # the current setting of ${PREFIX} @${EGREP} -q '^#define[[:space:]]+PREFIX[[:space:]]+"${PREFIX}"' \ diff --git a/ports-mgmt/mkreadmes/files/patch-Makefile b/ports-mgmt/mkreadmes/files/patch-Makefile new file mode 100644 index 000000000000..39a53be16c32 --- /dev/null +++ b/ports-mgmt/mkreadmes/files/patch-Makefile @@ -0,0 +1,15 @@ +--- ./Makefile.orig 2014-06-23 23:32:51.000000000 -0400 ++++ ./Makefile 2014-06-23 23:34:59.000000000 -0400 +@@ -8,9 +8,9 @@ + PROGRAM= mkreadmes + VERSION= 1.3 + PREFIX?= /usr/local # allow user to override install prefix +-BINDIR= ${PREFIX}/sbin +-DATADIR= ${PREFIX}/share/${PROGRAM} +-MANDIR= ${PREFIX}/man/man1 ++BINDIR= ${DESTDIR}${PREFIX}/sbin ++DATADIR= ${DESTDIR}${PREFIX}/share/${PROGRAM} ++MANDIR= ${DESTDIR}${PREFIX}/man/man1 + TEMPLATESDIR= ${DATADIR}/Templates + SRCS= index.c init.c main.c ${PROGRAM}.c util.c ${PROGRAM}.h + INCLUDES= /usr/include |