diff options
author | jkoshy <jkoshy@FreeBSD.org> | 2004-08-24 11:01:01 +0800 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 2004-08-24 11:01:01 +0800 |
commit | ab68e7470160c9e62d046d313d458e19aa50f3c7 (patch) | |
tree | 59c65316c144d1d0eb4aaff23c7a4f107ce172a2 /misc/tet | |
parent | 65f42855185b334b06995159c3a67f220023da78 (diff) | |
download | freebsd-ports-gnome-ab68e7470160c9e62d046d313d458e19aa50f3c7.tar.gz freebsd-ports-gnome-ab68e7470160c9e62d046d313d458e19aa50f3c7.tar.zst freebsd-ports-gnome-ab68e7470160c9e62d046d313d458e19aa50f3c7.zip |
Unbreak port by merging the build and install phases. Create a PLIST
dynamically so that pkg_delete works. Make the Makefile and pkg-descr
portlint clean.
Diffstat (limited to 'misc/tet')
-rw-r--r-- | misc/tet/Makefile | 39 | ||||
-rw-r--r-- | misc/tet/pkg-descr | 1 |
2 files changed, 22 insertions, 18 deletions
diff --git a/misc/tet/Makefile b/misc/tet/Makefile index fe4bbab586b6..902f59664d14 100644 --- a/misc/tet/Makefile +++ b/misc/tet/Makefile @@ -11,22 +11,21 @@ CATEGORIES= misc MASTER_SITES= ftp://ftp.rdg.opengroup.org/pub/TET/TET3/ \ ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= jkoshy -DISTFILES= ${PORTNAME}${PORTVERSION}-unsup.src.tgz +DISTNAME= ${PORTNAME}${PORTVERSION}-unsup.src +EXTRACT_SUFX= .tgz MAINTAINER= jkoshy@freebsd.org COMMENT= An test execution framework from the Open Group -BROKEN= "Installs/removes files outside of the install/deinstall phases" NO_WRKSUBDIR= yes NO_PACKAGE= TET_ROOT needs to be set at compile time HAS_CONFIGURE= yes CONFIGURE_ARGS= -t ${TET_CONFIG_TARGET} +NO_BUILD= yes +PLIST= ${WRKDIR}/PLIST TET_CONFIG_TARGET?= inet # options are `lite', `xti' and `inet' -do-build: - cd ${WRKDIR}/src && ${MAKE} ${ALL_TARGET} - pre-extract: .if !defined(TET_ROOT) @${ECHO_MSG} @@ -39,21 +38,27 @@ pre-extract: @${TRUE} .endif -# remove the TET_ROOT directory if it exists -pre-clean: -.if defined(TET_ROOT) - ${RM} -rf ${TET_ROOT} -.endif - ${RM} -rf ${WRKDIR} - -# move the work directory to $TET_ROOT after extraction -post-extract: +# fix permissions +pre-configure: ${CHMOD} +x ${WRKDIR}/configure + +# move the work directory to $TET_ROOT after extraction, and build +# TET inside of $TET_ROOT +pre-install: ${MKDIR} ${TET_ROOT} - cd ${WRKDIR} && tar cf - . | (cd ${TET_ROOT} && tar xf -) - ${RM} -rf ${WRKDIR} && ${LN} -s ${TET_ROOT} ${WRKDIR} + cd ${WRKDIR} && ${TAR} -cf - * | \ + (cd ${TET_ROOT} && ${TAR} xf -) + cd ${TET_ROOT}/src && ${MAKE} ${ALL_TARGET} + cd ${TET_ROOT}/src && ${MAKE} ${INSTALL_TARGET} + ${ECHO} "@cwd ${TET_ROOT}" > ${PLIST} + cd ${TET_ROOT} && ${FIND} . ! -type d | \ + ${SED} -e 's,^\./,,' >> ${PLIST} + cd ${TET_ROOT} && ${FIND} -d . -type d -print | ${SORT} -ru | \ + ${SED} -e 's,^\./,,' -e '/^\.$$/d' -e 's/^/@dirrm /' \ + >> ${PLIST} + ${ECHO} "@unexec ${RMDIR} ${TET_ROOT}" >> ${PLIST} do-install: - cd ${WRKDIR}/src && ${MAKE} ${INSTALL_TARGET} + @${TRUE} .include <bsd.port.mk> diff --git a/misc/tet/pkg-descr b/misc/tet/pkg-descr index d464c1fb4eb3..e5906101480d 100644 --- a/misc/tet/pkg-descr +++ b/misc/tet/pkg-descr @@ -17,4 +17,3 @@ It allows facilities to execute test cases in several ways: times or until some time period has expired. WWW: http://tetworks.opengroup.org/documents/docs33.html - |