mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
Replace the non-scalable way of determining the man page name (the
Makefile in the package honors NOMANCOMPRESS itself) with a much better one mostly suggested by roam@. While I'm here fix my e-mail address.
This commit is contained in:
parent
c4aff42053
commit
85df8a48dc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=44385
@ -12,21 +12,26 @@ MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
|||||||
http://www.unixfreak.org/~dima/distfiles/
|
http://www.unixfreak.org/~dima/distfiles/
|
||||||
MASTER_SITE_SUBDIR= dd
|
MASTER_SITE_SUBDIR= dd
|
||||||
|
|
||||||
MAINTAINER= dima@unixfreak.org
|
MAINTAINER= dd@FreeBSD.org
|
||||||
|
|
||||||
|
MANSECTS= 1
|
||||||
MAN1= mg.1
|
MAN1= mg.1
|
||||||
MANCOMPRESSED= maybe
|
MANCOMPRESSED= maybe
|
||||||
|
|
||||||
# This isn't very scalable, but I'm lazy..
|
# MAN page COMPression SUFFIX
|
||||||
.if defined(NOMANCOMPRESS)
|
.if !defined(NOMANCOMPRESS)
|
||||||
MANNAME= mg.1
|
MANCOMPSUFFIX= .gz
|
||||||
.else
|
.else
|
||||||
MANNAME= mg.1.gz
|
MANCOMPSUFFIX=
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@${INSTALL_PROGRAM} ${WRKSRC}/mg ${PREFIX}/bin/mg
|
@${INSTALL_PROGRAM} ${WRKSRC}/mg ${PREFIX}/bin/mg
|
||||||
@${INSTALL_MAN} ${WRKSRC}/${MANNAME} ${PREFIX}/man/man1
|
.for __s in ${MANSECTS}
|
||||||
|
.for __m in ${MAN${__s}:S/$/${MANCOMPSUFFIX}/}
|
||||||
|
@${INSTALL_MAN} ${WRKSRC}/${__m} ${PREFIX}/man/man${__s}/${__m}
|
||||||
|
.endfor
|
||||||
|
.endfor
|
||||||
.if !defined(NOPORTDOCS)
|
.if !defined(NOPORTDOCS)
|
||||||
@${MKDIR} ${PREFIX}/share/doc/mg
|
@${MKDIR} ${PREFIX}/share/doc/mg
|
||||||
@${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/tutorial \
|
@${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/tutorial \
|
||||||
|
@ -12,21 +12,26 @@ MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
|||||||
http://www.unixfreak.org/~dima/distfiles/
|
http://www.unixfreak.org/~dima/distfiles/
|
||||||
MASTER_SITE_SUBDIR= dd
|
MASTER_SITE_SUBDIR= dd
|
||||||
|
|
||||||
MAINTAINER= dima@unixfreak.org
|
MAINTAINER= dd@FreeBSD.org
|
||||||
|
|
||||||
|
MANSECTS= 1
|
||||||
MAN1= shuffle.1
|
MAN1= shuffle.1
|
||||||
MANCOMPRESSED= maybe
|
MANCOMPRESSED= maybe
|
||||||
|
|
||||||
# This isn't very scalable, but I'm lazy..
|
# MAN page COMPression SUFFIX
|
||||||
.if defined(NOMANCOMPRESS)
|
.if !defined(NOMANCOMPRESS)
|
||||||
MANNAME= shuffle.1
|
MANCOMPSUFFIX= .gz
|
||||||
.else
|
.else
|
||||||
MANNAME= shuffle.1.gz
|
MANCOMPSUFFIX=
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@${INSTALL_PROGRAM} ${WRKSRC}/shuffle ${PREFIX}/bin/shuffle
|
@${INSTALL_PROGRAM} ${WRKSRC}/shuffle ${PREFIX}/bin/shuffle
|
||||||
@${INSTALL_MAN} ${WRKSRC}/${MANNAME} ${PREFIX}/man/man1
|
.for __s in ${MANSECTS}
|
||||||
|
.for __m in ${MAN${__s}:S/$/${MANCOMPSUFFIX}/}
|
||||||
|
@${INSTALL_MAN} ${WRKSRC}/${__m} ${PREFIX}/man/man${__s}/${__m}
|
||||||
|
.endfor
|
||||||
|
.endfor
|
||||||
|
|
||||||
#
|
#
|
||||||
# Ports build/install stuff stops here. Tarball creation stuff begins here.
|
# Ports build/install stuff stops here. Tarball creation stuff begins here.
|
||||||
|
Loading…
Reference in New Issue
Block a user