1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Stageify, and use @sample on pkg-plist.

Approved by:	portmgr@
This commit is contained in:
Vanilla I. Shu 2014-05-22 14:44:56 +00:00
parent 0f4f78d960
commit c2f189426e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354857
2 changed files with 8 additions and 16 deletions

View File

@ -14,15 +14,11 @@ LICENSE= GPLv2
LIB_DEPENDS+= libmpdclient.so:${PORTSDIR}/audio/libmpdclient LIB_DEPENDS+= libmpdclient.so:${PORTSDIR}/audio/libmpdclient
USE_BZIP2= yes USES= pkgconfig tar:bzip2
NO_STAGE= yes
USES= pkgconfig
USE_GNOME= glib20 USE_GNOME= glib20
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
USE_RC_SUBR= mpdscribble USE_RC_SUBR= mpdscribble
MAN1= mpdscribble.1
OPTIONS_DEFINE= SOUP DOCS OPTIONS_DEFINE= SOUP DOCS
SOUP_DESC= Use libsoup instead of libcurl SOUP_DESC= Use libsoup instead of libcurl
@ -37,16 +33,13 @@ CONFIGURE_ARGS+= --with-http-client=curl
.endif .endif
do-install: do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/mpdscribble ${PREFIX}/bin/mpdscribble ${INSTALL_PROGRAM} ${WRKSRC}/src/mpdscribble ${STAGEDIR}${PREFIX}/bin/mpdscribble
${INSTALL_MAN} ${WRKSRC}/doc/mpdscribble.1 ${MANPREFIX}/man/man1/mpdscribble.1 ${INSTALL_MAN} ${WRKSRC}/doc/mpdscribble.1 ${STAGEDIR}${MANPREFIX}/man/man1/mpdscribble.1
${INSTALL_DATA} ${WRKSRC}/doc/mpdscribble.conf ${PREFIX}/etc/mpdscribble.conf.sample ${INSTALL_DATA} ${WRKSRC}/doc/mpdscribble.conf ${STAGEDIR}${PREFIX}/etc/mpdscribble.conf.sample
.if !exists(${PREFIX}/etc/mpdscribble.conf)
@(cd ${PREFIX}/etc && ${CP} mpdscribble.conf.sample mpdscribble.conf)
.endif
.if ${PORT_OPTIONS:MDOCS} .if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in AUTHORS NEWS README .for file in AUTHORS NEWS README
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor .endfor
.endif .endif

View File

@ -1,7 +1,6 @@
bin/mpdscribble bin/mpdscribble
@unexec if cmp -s %D/etc/mpdscribble.conf.sample %D/etc/mpdscribble.conf; then rm -f %D/etc/mpdscribble.conf; fi @sample etc/mpdscribble.conf.sample
etc/mpdscribble.conf.sample man/man1/mpdscribble.1.gz
@exec [ -f %B/mpdscribble.conf ] || cp -p %B/%f %B/mpdscribble.conf
%%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS %%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/NEWS %%PORTDOCS%%%%DOCSDIR%%/NEWS