diff options
author | marcus <marcus@FreeBSD.org> | 2003-06-19 04:40:55 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-06-19 04:40:55 +0800 |
commit | 541edf84f4206f9322fcd0df54b6bcc5221be4cc (patch) | |
tree | 31d470ad40d384586fd39d88a6d70ab86c9956cf /devel/aap | |
parent | 6f995f4952174732a211f63175d937c0e7ba78b4 (diff) | |
download | freebsd-ports-gnome-541edf84f4206f9322fcd0df54b6bcc5221be4cc.tar.gz freebsd-ports-gnome-541edf84f4206f9322fcd0df54b6bcc5221be4cc.tar.zst freebsd-ports-gnome-541edf84f4206f9322fcd0df54b6bcc5221be4cc.zip |
* Update to 0.900
* Changed the install mode to 644 for PORTDOCS
* Added pkg-install script to pre-compile Python files
* Removed OpenSSH dependency
PR: 53456
Submitted by: Rui Lopes <rui@ruilopes.com>
Approved by: maintainer
Diffstat (limited to 'devel/aap')
-rw-r--r-- | devel/aap/Makefile | 39 | ||||
-rw-r--r-- | devel/aap/distinfo | 2 | ||||
-rw-r--r-- | devel/aap/files/pkg-install.in | 15 | ||||
-rw-r--r-- | devel/aap/pkg-plist | 97 |
4 files changed, 59 insertions, 94 deletions
diff --git a/devel/aap/Makefile b/devel/aap/Makefile index 749d9fc9e53e..14188152db9b 100644 --- a/devel/aap/Makefile +++ b/devel/aap/Makefile @@ -6,19 +6,14 @@ # PORTNAME= aap -PORTVERSION= 0.111 +PORTVERSION= 0.900 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= a-a-p -DISTNAME= exec-${PORTVERSION} MAINTAINER= bram@a-a-p.org COMMENT= A build tool alternative to make with internet access and CVS support -# A-A-P requires an "scp" command. If it doesn't exist, we need to chose which -# one to install. The OpenSSH one is probably the best choice. -RUN_DEPENDS= scp:${PORTSDIR}/security/openssh - MAN1= aap.1 NO_WRKSUBDIR= yes @@ -27,27 +22,33 @@ USE_ZIP= yes USE_PYTHON= yes PLIST_SUB+= PORTVERSION=${PORTVERSION} -# There is no Makefile for A-A-P; do the building and installing here. -# -# Building means compiling the Python files so that the .pyc and .pyo files are -# generated. +# This port does not need to build anything here do-build: - cd ${WRKSRC}; ${PYTHON_CMD} -c "import compileall; compileall.compile_dir('.', 0)" - cd ${WRKSRC}; ${PYTHON_CMD} -O -c "import compileall; compileall.compile_dir('.', 0)" + @${TRUE} # The files are installed in lib/aap/Exec-${PORTVERSION} and below. Create # a symbolic link for bin/aap so that it's found in $PATH and still knows # where to find the Python modules. # Also create a link for share/doc/aap, so that more people can find the docs # without clobbering share/doc. +AAPEXECDIR= lib/aap/Exec-${PORTVERSION} +INSTALLDIR= ${PREFIX}/${AAPEXECDIR} do-install: - ${MKDIR} -m 0755 ${PREFIX}/lib/aap/Exec-${PORTVERSION}/doc - cd ${WRKSRC}; ${INSTALL_SCRIPT} *.py *.pyc *.pyo aap ${PREFIX}/lib/aap/Exec-${PORTVERSION} - cd ${WRKSRC}; ${INSTALL_DATA} -m 0744 COPYING README.txt filetype.txt default.aap ${PREFIX}/lib/aap/Exec-${PORTVERSION} - cd ${WRKSRC}; ${INSTALL_DATA} doc/*.html doc/exec.pdf ${PREFIX}/lib/aap/Exec-${PORTVERSION}/doc - cd ${WRKSRC}; ${INSTALL_DATA} aap.1 ${PREFIX}/man/man1 - cd ${PREFIX}/bin; ${LN} -fhs ../lib/aap/Exec-${PORTVERSION}/aap aap - cd ${PREFIX}/share/doc; ${LN} -fhs ../../lib/aap/Exec-${PORTVERSION}/doc aap + cd ${WRKSRC} && \ + ${MKDIR} -m 755 ${INSTALLDIR}/doc ${INSTALLDIR}/tools && \ + ${INSTALL_SCRIPT} *.py aap ${INSTALLDIR} && \ + ${INSTALL_SCRIPT} tools/*.py ${INSTALLDIR}/tools && \ + ${INSTALL_DATA} -m 644 COPYING README.txt filetype.txt default.aap ${INSTALLDIR} && \ + ${INSTALL_DATA} doc/*.html doc/exec.pdf ${INSTALLDIR}/doc && \ + ${INSTALL_DATA} aap.1 ${PREFIX}/man/man1 && \ + ${LN} -fhs ${INSTALLDIR}/aap ${PREFIX}/bin/aap && \ + ${LN} -fhs ${INSTALLDIR}/doc ${PREFIX}/share/doc/aap + +post-install: + @${SED} -e 's,@PYTHON_CMD@,${PYTHON_CMD},g ; \ + s,@AAPEXECDIR@,${AAPEXECDIR},g' \ + < ${FILESDIR}/pkg-install.in > ${WRKSRC}/pkg-install + @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${WRKSRC}/pkg-install ${PKGNAME} POST-INSTALL test: cd ${WRKSRC}; ./aap diff --git a/devel/aap/distinfo b/devel/aap/distinfo index 803cd7e50ef1..29fbd5dd2b47 100644 --- a/devel/aap/distinfo +++ b/devel/aap/distinfo @@ -1 +1 @@ -MD5 (exec-0.111.zip) = 0b90a89eeb07d208ff5d2dda9277ed19 +MD5 (aap-0.900.zip) = 1993e6ece7f48dd10b3eb455470e97b5 diff --git a/devel/aap/files/pkg-install.in b/devel/aap/files/pkg-install.in new file mode 100644 index 000000000000..54b292f48963 --- /dev/null +++ b/devel/aap/files/pkg-install.in @@ -0,0 +1,15 @@ +#!/bin/sh +# $FreeBSD$ + +if [ "$2" != "POST-INSTALL" ]; then + exit 0 +fi + +PYTHON_CMD=@PYTHON_CMD@ +INSTALLDIR=${PKG_PREFIX}/@AAPEXECDIR@ + +echo 'Compiling files...' +(cd ${INSTALLDIR} && \ + ${PYTHON_CMD} -c "import compileall; compileall.compile_dir('.', 1)" && \ + ${PYTHON_CMD} -O -c "import compileall; compileall.compile_dir('.', 1)" \ + ) || exit 1 diff --git a/devel/aap/pkg-plist b/devel/aap/pkg-plist index 04f5fe9e67cc..4c848221b5f2 100644 --- a/devel/aap/pkg-plist +++ b/devel/aap/pkg-plist @@ -1,118 +1,55 @@ bin/aap lib/aap/Exec-%%PORTVERSION%%/Action.py -lib/aap/Exec-%%PORTVERSION%%/Action.pyc -lib/aap/Exec-%%PORTVERSION%%/Action.pyo lib/aap/Exec-%%PORTVERSION%%/Args.py -lib/aap/Exec-%%PORTVERSION%%/Args.pyc -lib/aap/Exec-%%PORTVERSION%%/Args.pyo lib/aap/Exec-%%PORTVERSION%%/COPYING lib/aap/Exec-%%PORTVERSION%%/Cache.py -lib/aap/Exec-%%PORTVERSION%%/Cache.pyc -lib/aap/Exec-%%PORTVERSION%%/Cache.pyo lib/aap/Exec-%%PORTVERSION%%/Commands.py -lib/aap/Exec-%%PORTVERSION%%/Commands.pyc -lib/aap/Exec-%%PORTVERSION%%/Commands.pyo lib/aap/Exec-%%PORTVERSION%%/CopyMove.py -lib/aap/Exec-%%PORTVERSION%%/CopyMove.pyc -lib/aap/Exec-%%PORTVERSION%%/CopyMove.pyo -lib/aap/Exec-%%PORTVERSION%%/Cvs.py -lib/aap/Exec-%%PORTVERSION%%/Cvs.pyc -lib/aap/Exec-%%PORTVERSION%%/Cvs.pyo lib/aap/Exec-%%PORTVERSION%%/Depend.py -lib/aap/Exec-%%PORTVERSION%%/Depend.pyc -lib/aap/Exec-%%PORTVERSION%%/Depend.pyo lib/aap/Exec-%%PORTVERSION%%/Dictlist.py -lib/aap/Exec-%%PORTVERSION%%/Dictlist.pyc -lib/aap/Exec-%%PORTVERSION%%/Dictlist.pyo lib/aap/Exec-%%PORTVERSION%%/DoAddDef.py -lib/aap/Exec-%%PORTVERSION%%/DoAddDef.pyc -lib/aap/Exec-%%PORTVERSION%%/DoAddDef.pyo lib/aap/Exec-%%PORTVERSION%%/DoArgs.py -lib/aap/Exec-%%PORTVERSION%%/DoArgs.pyc -lib/aap/Exec-%%PORTVERSION%%/DoArgs.pyo lib/aap/Exec-%%PORTVERSION%%/DoBuild.py -lib/aap/Exec-%%PORTVERSION%%/DoBuild.pyc -lib/aap/Exec-%%PORTVERSION%%/DoBuild.pyo +lib/aap/Exec-%%PORTVERSION%%/DoInstall.py lib/aap/Exec-%%PORTVERSION%%/DoRead.py -lib/aap/Exec-%%PORTVERSION%%/DoRead.pyc -lib/aap/Exec-%%PORTVERSION%%/DoRead.pyo lib/aap/Exec-%%PORTVERSION%%/Error.py -lib/aap/Exec-%%PORTVERSION%%/Error.pyc -lib/aap/Exec-%%PORTVERSION%%/Error.pyo lib/aap/Exec-%%PORTVERSION%%/Filetype.py -lib/aap/Exec-%%PORTVERSION%%/Filetype.pyc -lib/aap/Exec-%%PORTVERSION%%/Filetype.pyo lib/aap/Exec-%%PORTVERSION%%/Global.py -lib/aap/Exec-%%PORTVERSION%%/Global.pyc -lib/aap/Exec-%%PORTVERSION%%/Global.pyo lib/aap/Exec-%%PORTVERSION%%/Main.py -lib/aap/Exec-%%PORTVERSION%%/Main.pyc -lib/aap/Exec-%%PORTVERSION%%/Main.pyo lib/aap/Exec-%%PORTVERSION%%/Message.py -lib/aap/Exec-%%PORTVERSION%%/Message.pyc -lib/aap/Exec-%%PORTVERSION%%/Message.pyo lib/aap/Exec-%%PORTVERSION%%/Node.py -lib/aap/Exec-%%PORTVERSION%%/Node.pyc -lib/aap/Exec-%%PORTVERSION%%/Node.pyo lib/aap/Exec-%%PORTVERSION%%/ParsePos.py -lib/aap/Exec-%%PORTVERSION%%/ParsePos.pyc -lib/aap/Exec-%%PORTVERSION%%/ParsePos.pyo lib/aap/Exec-%%PORTVERSION%%/PkgInstall.py -lib/aap/Exec-%%PORTVERSION%%/PkgInstall.pyc -lib/aap/Exec-%%PORTVERSION%%/PkgInstall.pyo lib/aap/Exec-%%PORTVERSION%%/Port.py -lib/aap/Exec-%%PORTVERSION%%/Port.pyc -lib/aap/Exec-%%PORTVERSION%%/Port.pyo lib/aap/Exec-%%PORTVERSION%%/PrintProfile.py -lib/aap/Exec-%%PORTVERSION%%/PrintProfile.pyc -lib/aap/Exec-%%PORTVERSION%%/PrintProfile.pyo lib/aap/Exec-%%PORTVERSION%%/Process.py -lib/aap/Exec-%%PORTVERSION%%/Process.pyc -lib/aap/Exec-%%PORTVERSION%%/Process.pyo lib/aap/Exec-%%PORTVERSION%%/README.txt lib/aap/Exec-%%PORTVERSION%%/RecPos.py -lib/aap/Exec-%%PORTVERSION%%/RecPos.pyc -lib/aap/Exec-%%PORTVERSION%%/RecPos.pyo +lib/aap/Exec-%%PORTVERSION%%/RecPython.py lib/aap/Exec-%%PORTVERSION%%/Remote.py -lib/aap/Exec-%%PORTVERSION%%/Remote.pyc -lib/aap/Exec-%%PORTVERSION%%/Remote.pyo +lib/aap/Exec-%%PORTVERSION%%/RootShell.py lib/aap/Exec-%%PORTVERSION%%/Rule.py -lib/aap/Exec-%%PORTVERSION%%/Rule.pyc -lib/aap/Exec-%%PORTVERSION%%/Rule.pyo +lib/aap/Exec-%%PORTVERSION%%/Scope.py lib/aap/Exec-%%PORTVERSION%%/Sign.py -lib/aap/Exec-%%PORTVERSION%%/Sign.pyc -lib/aap/Exec-%%PORTVERSION%%/Sign.pyo lib/aap/Exec-%%PORTVERSION%%/Util.py -lib/aap/Exec-%%PORTVERSION%%/Util.pyc -lib/aap/Exec-%%PORTVERSION%%/Util.pyo lib/aap/Exec-%%PORTVERSION%%/VersCont.py -lib/aap/Exec-%%PORTVERSION%%/VersCont.pyc -lib/aap/Exec-%%PORTVERSION%%/VersCont.pyo +lib/aap/Exec-%%PORTVERSION%%/VersContCvs.py lib/aap/Exec-%%PORTVERSION%%/Version.py -lib/aap/Exec-%%PORTVERSION%%/Version.pyc -lib/aap/Exec-%%PORTVERSION%%/Version.pyo lib/aap/Exec-%%PORTVERSION%%/Work.py -lib/aap/Exec-%%PORTVERSION%%/Work.pyc -lib/aap/Exec-%%PORTVERSION%%/Work.pyo lib/aap/Exec-%%PORTVERSION%%/__init__.py -lib/aap/Exec-%%PORTVERSION%%/__init__.pyc -lib/aap/Exec-%%PORTVERSION%%/__init__.pyo lib/aap/Exec-%%PORTVERSION%%/aap lib/aap/Exec-%%PORTVERSION%%/aap.py -lib/aap/Exec-%%PORTVERSION%%/aap.pyc -lib/aap/Exec-%%PORTVERSION%%/aap.pyo lib/aap/Exec-%%PORTVERSION%%/aapnetrc.py -lib/aap/Exec-%%PORTVERSION%%/aapnetrc.pyc -lib/aap/Exec-%%PORTVERSION%%/aapnetrc.pyo lib/aap/Exec-%%PORTVERSION%%/default.aap +lib/aap/Exec-%%PORTVERSION%%/doc/exec.html lib/aap/Exec-%%PORTVERSION%%/doc/exec.pdf lib/aap/Exec-%%PORTVERSION%%/doc/index.html lib/aap/Exec-%%PORTVERSION%%/doc/license.html lib/aap/Exec-%%PORTVERSION%%/doc/ln12.html -lib/aap/Exec-%%PORTVERSION%%/doc/p1235.html -lib/aap/Exec-%%PORTVERSION%%/doc/p27.html -lib/aap/Exec-%%PORTVERSION%%/doc/p805.html -lib/aap/Exec-%%PORTVERSION%%/doc/p888.html +lib/aap/Exec-%%PORTVERSION%%/doc/p1714.html +lib/aap/Exec-%%PORTVERSION%%/doc/p2794.html +lib/aap/Exec-%%PORTVERSION%%/doc/p30.html +lib/aap/Exec-%%PORTVERSION%%/doc/p794.html lib/aap/Exec-%%PORTVERSION%%/doc/ref-arguments.html lib/aap/Exec-%%PORTVERSION%%/doc/ref-attributes.html lib/aap/Exec-%%PORTVERSION%%/doc/ref-commands.html @@ -130,20 +67,32 @@ lib/aap/Exec-%%PORTVERSION%%/doc/tutor-start.html lib/aap/Exec-%%PORTVERSION%%/doc/tutor-variant.html lib/aap/Exec-%%PORTVERSION%%/doc/tutor-website.html lib/aap/Exec-%%PORTVERSION%%/doc/user-autodep.html +lib/aap/Exec-%%PORTVERSION%%/doc/user-basics.html lib/aap/Exec-%%PORTVERSION%%/doc/user-cvs.html lib/aap/Exec-%%PORTVERSION%%/doc/user-debug.html lib/aap/Exec-%%PORTVERSION%%/doc/user-depend.html lib/aap/Exec-%%PORTVERSION%%/doc/user-fetch.html lib/aap/Exec-%%PORTVERSION%%/doc/user-filetype.html +lib/aap/Exec-%%PORTVERSION%%/doc/user-install.html lib/aap/Exec-%%PORTVERSION%%/doc/user-issue.html lib/aap/Exec-%%PORTVERSION%%/doc/user-makedif.html +lib/aap/Exec-%%PORTVERSION%%/doc/user-package.html lib/aap/Exec-%%PORTVERSION%%/doc/user-porting.html lib/aap/Exec-%%PORTVERSION%%/doc/user-publish.html lib/aap/Exec-%%PORTVERSION%%/doc/user-python.html +lib/aap/Exec-%%PORTVERSION%%/doc/user-tools.html lib/aap/Exec-%%PORTVERSION%%/doc/user-variant.html lib/aap/Exec-%%PORTVERSION%%/doc/user-version.html lib/aap/Exec-%%PORTVERSION%%/filetype.txt +lib/aap/Exec-%%PORTVERSION%%/tools/__init__.py +lib/aap/Exec-%%PORTVERSION%%/tools/gcc.py +lib/aap/Exec-%%PORTVERSION%%/tools/icc.py +lib/aap/Exec-%%PORTVERSION%%/tools/mingw.py +lib/aap/Exec-%%PORTVERSION%%/tools/msvc.py share/doc/aap +@unexec rm -f %D/lib/aap/Exec-%%PORTVERSION%%/tools/*.py[co] +@unexec rm -f %D/lib/aap/Exec-%%PORTVERSION%%/*.py[co] @dirrm lib/aap/Exec-%%PORTVERSION%%/doc +@dirrm lib/aap/Exec-%%PORTVERSION%%/tools @dirrm lib/aap/Exec-%%PORTVERSION%% -@unexec rmdir %D/lib/aap 2>/dev/null || true +@dirrm lib/aap |