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

Convert to staging.

This commit is contained in:
Matthias Andree 2013-12-14 09:52:41 +00:00
parent 834b1c0992
commit fe5a519334
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=336430
5 changed files with 18 additions and 20 deletions

View File

@ -19,7 +19,6 @@ LIB_DEPENDS+= libFLAC.so:${PORTSDIR}/audio/flac \
libao.so:${PORTSDIR}/audio/libao
RUN_DEPENDS= id3v2:${PORTSDIR}/audio/id3v2
NO_STAGE= yes
USE_BZIP2= yes
USES= gmake
USE_RUBY= yes
@ -41,18 +40,18 @@ post-patch:
${WRKSRC}/src/global.c
do-install:
${MKDIR} ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/squash ${PREFIX}/bin
${MKDIR} ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/squash ${STAGEDIR}${PREFIX}/bin
.for FILE in collect_info edit_tag export_music import_music joystick uncollect_info
${INSTALL_SCRIPT} ${WRKSRC}/extra/${FILE}.rb ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/extra/${FILE}.rb ${STAGEDIR}${PREFIX}/bin
.endfor
${MKDIR} ${RUBY_SITELIBDIR}
${INSTALL_DATA} ${WRKSRC}/extra/musicdb_lib.rb ${RUBY_SITELIBDIR}
${INSTALL_DATA} ${WRKSRC}/extra/squash.conf ${PREFIX}/etc/squash.conf.dist
${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR}
${INSTALL_DATA} ${WRKSRC}/extra/musicdb_lib.rb ${STAGEDIR}${RUBY_SITELIBDIR}
${INSTALL_DATA} ${WRKSRC}/extra/squash.conf ${STAGEDIR}${PREFIX}/etc/squash.conf.dist
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in README doc/FEATURES doc/LOCKS doc/INSTALL doc/USERS_GUIDE
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.endif

View File

@ -16,15 +16,13 @@ USES= perl5
USE_PERL5= run
NO_BUILD= yes
NO_WRKSUBDIR= yes
MAN1= cvschk.1
NO_STAGE= yes
do-configure:
${SED} -e "s,^#!/usr/bin/perl -w,#! ${PERL} -w," \
<${DISTDIR}/${DISTNAME} >${WRKSRC}/${DISTNAME}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${DISTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${FILESDIR}/cvschk.1 ${PREFIX}/man/man1
${INSTALL_SCRIPT} ${WRKSRC}/${DISTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${FILESDIR}/cvschk.1 ${STAGEDIR}${PREFIX}/man/man1
.include <bsd.port.mk>

View File

@ -1 +1,2 @@
bin/cvschk
man/man1/cvschk.1.gz

View File

@ -21,7 +21,8 @@ PLIST_SUB+= PROFLIB=""
SRCCONF= /dev/null
MAKE_ENV+= SRCCONF=${SRCCONF}
NO_STAGE= yes
NEED_ROOT= yes
.include <bsd.port.options.mk>
post-extract:
@ -36,8 +37,8 @@ pre-install:
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -23,7 +23,6 @@ MAKE_ARGS+= SKIP_STRIP=y CC="${CC}" HOSTCC="${CC}" CXX="${CXX}" HOSTCXX="${CXX}"
USES= gmake
USE_BZIP2= yes
# avoid clang, breaks in findutils/find.c l. 752+,
NO_STAGE= yes
# uses a GCC extension/invalid C code:
USE_GCC?= 4.2+
@ -50,10 +49,10 @@ do-configure:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} oldconfig
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS}
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
${RM} -f ${DOCSDIR}/.gitignore
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
${RM} -f ${STAGEDIR}${DOCSDIR}/.gitignore
.endif
.include <bsd.port.mk>