Simplify port-specific manpages location after r523104
Not all of my ports are covered because: - USES=cmake requires patching devel/cmake to undo BSD-specific defaults (A good example why BSD quirks should stay in ports, not to be upstreamed) - USES=meson and GNU_CONFIGURE require dropping --mandir argument - ponscripter-sekai requires Templates/BSD.local.dist to NOT create PREFIX/man
This commit is contained in:
parent
1d7df735d7
commit
acae7ed8a2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=523601
24 changed files with 35 additions and 48 deletions
|
@ -30,9 +30,9 @@ MAKEFILE?= ${.CURDIR}/files/Makefile
|
|||
MAKE_ENV= BINDIR="${PREFIX}/bin" EXTRADIR="${FILESDIR}" \
|
||||
FILESDIR="${DOCSDIR}" \
|
||||
VERSION="${DISTVERSION}${DISTVERSIONSUFFIX}" \
|
||||
MANDIR="${PREFIX}/man/man"
|
||||
MANDIR="${PREFIX}/share/man/man"
|
||||
PLIST_FILES= bin/fastboot \
|
||||
man/man1/fastboot.1.gz
|
||||
share/man/man1/fastboot.1.gz
|
||||
PORTDOCS= *
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ LICENSE= ISCL
|
|||
USES= uidfix tar:xz
|
||||
MAKE_ENV= SHLIB_MAJOR=0 WITHOUT_PROFILE=1
|
||||
MAKE_ARGS= INCLUDEDIR="${PREFIX}/include" LIBDIR="${PREFIX}/lib" \
|
||||
MANDIR="${PREFIX}/man/man"
|
||||
MANDIR="${PREFIX}/share/man/man"
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
|
|
@ -3,6 +3,6 @@ include/ohash.h
|
|||
lib/libopenbsd.a
|
||||
lib/libopenbsd.so
|
||||
lib/libopenbsd.so.0
|
||||
man/man3/imsg_init.3.gz
|
||||
man/man3/ohash_init.3.gz
|
||||
man/man3/ohash_interval.3.gz
|
||||
share/man/man3/imsg_init.3.gz
|
||||
share/man/man3/ohash_init.3.gz
|
||||
share/man/man3/ohash_interval.3.gz
|
||||
|
|
|
@ -72,21 +72,20 @@ SNDIO_CMAKE_BOOL= USE_SNDIO
|
|||
SDL_CMAKE_BOOL= ENABLE_SDL2
|
||||
SDL_PLIST_FILES=bin/${PORTNAME} \
|
||||
bin/${PORTNAME}-room \
|
||||
man/man6/${PORTNAME}.6.gz
|
||||
share/man/man6/${PORTNAME}.6.gz
|
||||
|
||||
QT5_USES= desktop-file-utils qt:5 shared-mime-info
|
||||
QT5_USE= QT=qmake_build,buildtools_build,concurrent_build,core,gui,multimedia,opengl,widgets
|
||||
QT5_CMAKE_BOOL= ENABLE_QT
|
||||
QT5_PLIST_FILES=bin/${PORTNAME}-qt \
|
||||
"@comment bin/${PORTNAME}-room" \
|
||||
man/man6/${PORTNAME}-qt.6.gz \
|
||||
share/applications/${PORTNAME}.desktop \
|
||||
share/icons/hicolor/scalable/apps/${PORTNAME}.svg \
|
||||
share/man/man6/${PORTNAME}-qt.6.gz \
|
||||
share/mime/packages/${PORTNAME}.xml
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's,share/man,man,' \
|
||||
-e '/check_submodules_present()/d' \
|
||||
@${REINPLACE_CMD} -e '/check_submodules_present()/d' \
|
||||
${WRKSRC}/CMakeLists.txt
|
||||
@${REINPLACE_CMD} -e 's/@GIT_BRANCH@/master/' \
|
||||
-e 's/@GIT_DESC@/${GH_TAGNAME}/' \
|
||||
|
|
|
@ -92,7 +92,7 @@ do-install:
|
|||
${LN} -sf ../${DATADIR_REL}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
||||
|
||||
${INSTALL_MAN} ${_DISTDIR}/${PORTNAME}.1 \
|
||||
${STAGEDIR}${MAN1PREFIX}/man/man1
|
||||
${STAGEDIR}${PREFIX}/share/man/man1
|
||||
(cd ${WRKSRC}/icons && ${COPYTREE_SHARE} \
|
||||
"hicolor" ${STAGEDIR}${PREFIX}/share/icons)
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
bin/ppsspp
|
||||
man/man1/ppsspp.1.gz
|
||||
share/icons/hicolor/128x128/apps/ppsspp.png
|
||||
share/icons/hicolor/16x16/apps/ppsspp.png
|
||||
share/icons/hicolor/24x24/apps/ppsspp.png
|
||||
|
@ -10,3 +9,4 @@ share/icons/hicolor/512x512/apps/ppsspp.png
|
|||
share/icons/hicolor/64x64/apps/ppsspp.png
|
||||
share/icons/hicolor/96x96/apps/ppsspp.png
|
||||
share/icons/hicolor/scalable/apps/ppsspp.svg
|
||||
share/man/man1/ppsspp.1.gz
|
||||
|
|
|
@ -96,8 +96,7 @@ QT5_PLIST_FILES=bin/${PORTNAME} \
|
|||
share/mime/packages/${PORTNAME}.xml
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's,share/man,man,' \
|
||||
-e '/check_submodules_present()/d' \
|
||||
@${REINPLACE_CMD} -e '/check_submodules_present()/d' \
|
||||
${WRKSRC}/CMakeLists.txt
|
||||
@${REINPLACE_CMD} -e 's/@GIT_BRANCH@/master/' \
|
||||
-e 's/@GIT_DESC@/${GH_TAGNAME}/' \
|
||||
|
|
|
@ -30,8 +30,8 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-installer
|
|||
PORTDATA= *
|
||||
PORTDOCS= README
|
||||
PLIST_FILES= bin/${PORTNAME} \
|
||||
man/man6/${PORTNAME}.6.gz \
|
||||
share/icons/hicolor/48x48/apps/${PORTNAME}.png
|
||||
share/icons/hicolor/48x48/apps/${PORTNAME}.png \
|
||||
share/man/man6/${PORTNAME}.6.gz
|
||||
|
||||
DESKTOP_ENTRIES="Narcissu & Narcissu: Side 2nd" \
|
||||
"" \
|
||||
|
@ -54,7 +54,7 @@ do-install:
|
|||
(cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
|
||||
${INSTALL_DATA} -p ${WRKDIR}/*.utf ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.6 \
|
||||
${STAGEDIR}${MAN6PREFIX}/man/man6/${PORTNAME}.6
|
||||
${STAGEDIR}${PREFIX}/share/man/man6/${PORTNAME}.6
|
||||
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
|
||||
"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ USE_SDL= sdl2
|
|||
NUGET_LAYOUT= flat
|
||||
NUGET_PACKAGEDIR=${WRKSRC}/thirdparty/download
|
||||
SHEBANG_FILES= launch-dedicated.sh
|
||||
MAKE_ENV= prefix="${PREFIX}" mandir="${PREFIX}/man" \
|
||||
MAKE_ENV= prefix="${PREFIX}" \
|
||||
gameinstalldir="${DATADIR}"
|
||||
ALL_TARGET= all
|
||||
INSTALL_TARGET= install install-man-page \
|
||||
|
|
|
@ -4,7 +4,6 @@ bin/openra-d2k
|
|||
bin/openra-d2k-server
|
||||
bin/openra-ra
|
||||
bin/openra-ra-server
|
||||
man/man6/openra.6.gz
|
||||
share/applications/openra-cnc.desktop
|
||||
share/applications/openra-d2k.desktop
|
||||
share/applications/openra-ra.desktop
|
||||
|
@ -25,6 +24,7 @@ share/icons/hicolor/64x64/apps/openra-d2k.png
|
|||
share/icons/hicolor/64x64/apps/openra-ra.png
|
||||
share/icons/hicolor/scalable/apps/openra-cnc.svg
|
||||
share/icons/hicolor/scalable/apps/openra-ra.svg
|
||||
share/man/man6/openra.6.gz
|
||||
share/mime/packages/openra-cnc.xml
|
||||
share/mime/packages/openra-d2k.xml
|
||||
share/mime/packages/openra-ra.xml
|
||||
|
|
|
@ -80,7 +80,7 @@ do-install:
|
|||
${INSTALL_PROGRAM} ${WRKSRC}/build/${PORTNAME} \
|
||||
${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/debian/${PORTNAME}.6 \
|
||||
${STAGEDIR}${MAN6PREFIX}/man/man6
|
||||
${STAGEDIR}${PREFIX}/share/man/man6
|
||||
${INSTALL_DATA} ${WRKSRC}/src/platforms/gtk/${PORTNAME}.desktop \
|
||||
${STAGEDIR}${DESKTOPDIR}
|
||||
@(cd ${WRKSRC}/resources && for f in */${PORTNAME}.png; do \
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
bin/rlvm
|
||||
man/man6/rlvm.6.gz
|
||||
share/applications/rlvm.desktop
|
||||
share/icons/hicolor/128x128/apps/rlvm.png
|
||||
share/icons/hicolor/16x16/apps/rlvm.png
|
||||
|
@ -8,3 +7,4 @@ share/icons/hicolor/256x256/apps/rlvm.png
|
|||
share/icons/hicolor/32x32/apps/rlvm.png
|
||||
share/icons/hicolor/48x48/apps/rlvm.png
|
||||
%%NLS%%share/locale/ja/LC_MESSAGES/rlvm.mo
|
||||
share/man/man6/rlvm.6.gz
|
||||
|
|
|
@ -30,9 +30,4 @@ OPENGL_QMAKE_OFF= CONFIG+=no_opengl
|
|||
POPPLER_LIB_DEPENDS= libpoppler-qt5.so:graphics/poppler-qt5
|
||||
POPPLER_QMAKE_OFF= CONFIG+=no_pdf
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/manpage.path/s/DATADIR/PREFIX/' \
|
||||
${WRKSRC}/YACReader/YACReader.pro \
|
||||
${WRKSRC}/YACReaderLibrary/YACReaderLibrary.pro
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -2,13 +2,13 @@ bin/YACReader
|
|||
bin/YACReaderLibrary
|
||||
bin/YACReaderLibraryServer
|
||||
lib/systemd/user/yacreaderlibraryserver.service
|
||||
man/man1/YACReader.1.gz
|
||||
man/man1/YACReaderLibrary.1.gz
|
||||
share/applications/YACReader.desktop
|
||||
share/applications/YACReaderLibrary.desktop
|
||||
%%DOCSDIR%%/CHANGELOG.md
|
||||
share/icons/hicolor/scalable/apps/YACReader.svg
|
||||
share/icons/hicolor/scalable/apps/YACReaderLibrary.svg
|
||||
share/man/man1/YACReader.1.gz
|
||||
share/man/man1/YACReaderLibrary.1.gz
|
||||
%%DATADIR%%/languages/yacreader_de.qm
|
||||
%%DATADIR%%/languages/yacreader_es.qm
|
||||
%%DATADIR%%/languages/yacreader_fr.qm
|
||||
|
|
|
@ -35,7 +35,6 @@ post-patch:
|
|||
${REINPLACE_CMD} '/^Comment/s,=.*,=${COMMENT},' \
|
||||
${WRKSRC}/etc/${PORTNAME}.desktop
|
||||
${REINPLACE_CMD} -e 's,/usr,${PREFIX},' \
|
||||
-e 's,share/man,man,' \
|
||||
${WRKSRC}/src/Baka-MPlayer.pro
|
||||
|
||||
post-install:
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
bin/baka-mplayer
|
||||
man/man1/baka-mplayer.1.gz
|
||||
share/applications/baka-mplayer.desktop
|
||||
%%NLS%%%%DATADIR%%/translations/baka-mplayer_de.qm
|
||||
%%NLS%%%%DATADIR%%/translations/baka-mplayer_es.qm
|
||||
|
@ -22,4 +21,5 @@ share/icons/hicolor/512x512/apps/baka-mplayer.png
|
|||
share/icons/hicolor/64x64/apps/baka-mplayer.png
|
||||
share/icons/hicolor/96x96/apps/baka-mplayer.png
|
||||
share/icons/hicolor/scalable/apps/baka-mplayer.svg
|
||||
share/man/man1/baka-mplayer.1.gz
|
||||
share/pixmaps/baka-mplayer.svg
|
||||
|
|
|
@ -20,15 +20,15 @@ USES= localbase uidfix
|
|||
USE_RC_SUBR= mdnsd
|
||||
MAKE_ENV= LDADD="${LIBS}"
|
||||
MAKE_ARGS= BINDIR="${PREFIX}/sbin" \
|
||||
MANDIR="${PREFIX}/man/man"
|
||||
MANDIR="${PREFIX}/share/man/man"
|
||||
CFLAGS+= -D__dead=__dead2
|
||||
LDFLAGS+= -Wl,--as-needed # -lutil
|
||||
LIBS+= -lopenbsd
|
||||
SUB_LIST= COMMENT="${COMMENT}"
|
||||
PLIST_FILES= sbin/mdnsctl \
|
||||
sbin/mdnsd \
|
||||
man/man8/mdnsctl.8.gz \
|
||||
man/man8/mdnsd.8.gz
|
||||
share/man/man8/mdnsctl.8.gz \
|
||||
share/man/man8/mdnsd.8.gz
|
||||
PORTDOCS= *
|
||||
|
||||
USERS= _mdnsd
|
||||
|
|
|
@ -33,7 +33,6 @@ post-extract:
|
|||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's,/usr,,g' \
|
||||
-e 's,/share/man,/man,g' \
|
||||
-e '/cache/s/PREFIX/DESTDIR/' \
|
||||
-e '/^include VERSION/d' \
|
||||
-e '/scripts\.common/s/*/&.sh/' \
|
||||
|
|
|
@ -74,6 +74,6 @@ etc/bash_completion.d/rinse
|
|||
%%DATADIR%%/rhel-5/post-install.sh
|
||||
%%DATADIR%%/slc-5/post-install.sh
|
||||
%%DATADIR%%/slc-6/post-install.sh
|
||||
man/man8/rinse.8.gz
|
||||
sbin/rinse
|
||||
share/man/man8/rinse.8.gz
|
||||
@dir /var/cache/rinse
|
||||
|
|
|
@ -28,7 +28,7 @@ USE_GITHUB= yes
|
|||
GH_ACCOUNT= kaiwang27
|
||||
|
||||
USES= uidfix
|
||||
MAKE_ENV+= BINDIR="${PREFIX}/sbin" MANDIR="${MANPREFIX}/man/man"
|
||||
MAKE_ENV+= BINDIR="${PREFIX}/sbin" MANDIR="${PREFIX}/share/man/man"
|
||||
MAKE_ARGS= LIBDIR="${LOCALBASE}/lib"
|
||||
USE_RC_SUBR= uhidd
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%%DEVD%%@sample etc/devd/uhidd-devd.conf.sample
|
||||
man/man5/uhidd.conf.5.gz
|
||||
man/man8/uhidd.8.gz
|
||||
sbin/uhidd
|
||||
share/man/man5/uhidd.conf.5.gz
|
||||
share/man/man8/uhidd.8.gz
|
||||
|
|
|
@ -12,13 +12,12 @@ LICENSE= MIT
|
|||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
USES= gmake
|
||||
MAKE_ENV= MANDIR='$$(_INSTDIR)/man' \
|
||||
PCDIR='$$(_INSTDIR)/libdata/pkgconfig'
|
||||
MAKE_ENV= PCDIR='$$(_INSTDIR)/libdata/pkgconfig'
|
||||
TEST_TARGET= check
|
||||
PLIST_FILES= bin/${PORTNAME} \
|
||||
libdata/pkgconfig/${PORTNAME}.pc \
|
||||
man/man1/${PORTNAME}.1.gz \
|
||||
man/man5/${PORTNAME}.5.gz
|
||||
share/man/man1/${PORTNAME}.1.gz \
|
||||
share/man/man5/${PORTNAME}.5.gz
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} '/-static/d' ${WRKSRC}/Makefile
|
||||
|
|
|
@ -59,12 +59,10 @@ DBUS_MESON_TRUE= dbus
|
|||
|
||||
DOCS_BUILD_DEPENDS= a2x:textproc/asciidoc
|
||||
DOCS_MESON_TRUE= build_docs
|
||||
DOCS_PLIST_FILES= man/man1/${PORTNAME}.1.gz \
|
||||
man/man1/${PORTNAME}-trans.1.gz
|
||||
DOCS_PLIST_FILES= share/man/man1/${PORTNAME}.1.gz \
|
||||
share/man/man1/${PORTNAME}-trans.1.gz
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/install_dir/s,share/man,man,' \
|
||||
${WRKSRC}/man/meson.build
|
||||
@${REINPLACE_CMD} -e '/config_system_dir/s,/etc,${PREFIX}&,' \
|
||||
${WRKSRC}/src/config_libconfig.c
|
||||
# Extract (snapshot) version from the port instead of meson.build
|
||||
|
|
|
@ -19,9 +19,8 @@ LIB_DEPENDS= libwayland-client.so:graphics/wayland \
|
|||
libxkbcommon.so:x11/libxkbcommon
|
||||
|
||||
USES= compiler:c11 gmake pkgconfig
|
||||
MAKE_ENV= MANDIR='$$(PREFIX)/man'
|
||||
PLIST_FILES= bin/${PORTNAME} \
|
||||
man/man1/${PORTNAME}.1.gz
|
||||
share/man/man1/${PORTNAME}.1.gz
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's/ -lrt//' ${WRKSRC}/Makefile
|
||||
|
|
Loading…
Reference in a new issue