diff options
author | vanilla <vanilla@FreeBSD.org> | 2014-05-22 22:44:56 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2014-05-22 22:44:56 +0800 |
commit | 8f1353a8fa2bc4e8d1815733a645c6a82931f4fd (patch) | |
tree | 27bd04bded7571b48f98dbf52aa92267c19d191a /audio/mpdscribble | |
parent | c5c76faa586f345b7653077ab65ff84687426425 (diff) | |
download | freebsd-ports-gnome-8f1353a8fa2bc4e8d1815733a645c6a82931f4fd.tar.gz freebsd-ports-gnome-8f1353a8fa2bc4e8d1815733a645c6a82931f4fd.tar.zst freebsd-ports-gnome-8f1353a8fa2bc4e8d1815733a645c6a82931f4fd.zip |
Stageify, and use @sample on pkg-plist.
Approved by: portmgr@
Diffstat (limited to 'audio/mpdscribble')
-rw-r--r-- | audio/mpdscribble/Makefile | 19 | ||||
-rw-r--r-- | audio/mpdscribble/pkg-plist | 5 |
2 files changed, 8 insertions, 16 deletions
diff --git a/audio/mpdscribble/Makefile b/audio/mpdscribble/Makefile index d6eae79f598e..0f5e3096a91a 100644 --- a/audio/mpdscribble/Makefile +++ b/audio/mpdscribble/Makefile @@ -14,15 +14,11 @@ LICENSE= GPLv2 LIB_DEPENDS+= libmpdclient.so:${PORTSDIR}/audio/libmpdclient -USE_BZIP2= yes -NO_STAGE= yes -USES= pkgconfig +USES= pkgconfig tar:bzip2 USE_GNOME= glib20 GNU_CONFIGURE= yes USE_RC_SUBR= mpdscribble -MAN1= mpdscribble.1 - OPTIONS_DEFINE= SOUP DOCS SOUP_DESC= Use libsoup instead of libcurl @@ -37,16 +33,13 @@ CONFIGURE_ARGS+= --with-http-client=curl .endif do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/src/mpdscribble ${PREFIX}/bin/mpdscribble - ${INSTALL_MAN} ${WRKSRC}/doc/mpdscribble.1 ${MANPREFIX}/man/man1/mpdscribble.1 - ${INSTALL_DATA} ${WRKSRC}/doc/mpdscribble.conf ${PREFIX}/etc/mpdscribble.conf.sample -.if !exists(${PREFIX}/etc/mpdscribble.conf) - @(cd ${PREFIX}/etc && ${CP} mpdscribble.conf.sample mpdscribble.conf) -.endif + ${INSTALL_PROGRAM} ${WRKSRC}/src/mpdscribble ${STAGEDIR}${PREFIX}/bin/mpdscribble + ${INSTALL_MAN} ${WRKSRC}/doc/mpdscribble.1 ${STAGEDIR}${MANPREFIX}/man/man1/mpdscribble.1 + ${INSTALL_DATA} ${WRKSRC}/doc/mpdscribble.conf ${STAGEDIR}${PREFIX}/etc/mpdscribble.conf.sample .if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for file in AUTHORS NEWS README - ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR} .endfor .endif diff --git a/audio/mpdscribble/pkg-plist b/audio/mpdscribble/pkg-plist index 3109cae947b5..a779707de0f0 100644 --- a/audio/mpdscribble/pkg-plist +++ b/audio/mpdscribble/pkg-plist @@ -1,7 +1,6 @@ bin/mpdscribble -@unexec if cmp -s %D/etc/mpdscribble.conf.sample %D/etc/mpdscribble.conf; then rm -f %D/etc/mpdscribble.conf; fi -etc/mpdscribble.conf.sample -@exec [ -f %B/mpdscribble.conf ] || cp -p %B/%f %B/mpdscribble.conf +@sample etc/mpdscribble.conf.sample +man/man1/mpdscribble.1.gz %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/AUTHORS %%PORTDOCS%%%%DOCSDIR%%/NEWS |