[72433] trunk/dports/devel

ryandesign at macports.org ryandesign at macports.org
Thu Oct 14 17:25:19 PDT 2010


Revision: 72433
          http://trac.macports.org/changeset/72433
Author:   ryandesign at macports.org
Date:     2010-10-14 17:25:17 -0700 (Thu, 14 Oct 2010)
Log Message:
-----------
aap: new port, version 1.091; see #23634

Added Paths:
-----------
    trunk/dports/devel/aap/
    trunk/dports/devel/aap/Portfile
    trunk/dports/devel/aap/files/
    trunk/dports/devel/aap/files/patch-destroot.diff
    trunk/dports/devel/aap/files/patch-python26.diff

Added: trunk/dports/devel/aap/Portfile
===================================================================
--- trunk/dports/devel/aap/Portfile	                        (rev 0)
+++ trunk/dports/devel/aap/Portfile	2010-10-15 00:25:17 UTC (rev 72433)
@@ -0,0 +1,54 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                aap
+version             1.091
+categories          devel
+platforms           darwin
+maintainers         yahoo.com.au:mail_ben_schmidt
+license             GPL-2
+supported_archs     noarch
+
+description         A-A-P helps you with distributed development of software.
+
+long_description    ${description} \
+                    Install a program on your system, obtain the sources \
+                    and make modifications, manage multiple versions \
+                    of the same project, distribute packages and much more. \
+                    A-A-P runs on many operating systems.
+
+homepage            http://www.a-a-p.org/
+master_sites        sourceforge:a-a-p
+use_zip             yes
+
+checksums           sha1    4f91e48292457826251ec2fddcd3ad9a4814c8ed \
+                    rmd160  59cb689cd2e36621e00b5c0f3e53ee50129cdff5
+
+depends_lib         port:python26
+
+extract.mkdir       yes
+
+patchfiles          patch-destroot.diff patch-python26.diff
+patch.pre_args      -p1
+
+post-patch {
+    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/aap
+}
+
+use_configure       no
+
+build {}
+
+destroot.cmd        ./aap
+destroot.args       PREFIX=${prefix}
+
+post-destroot {
+    set docdir ${destroot}${prefix}/share/doc/${name}
+    xinstall -d ${docdir}
+    xinstall -m 644 -W ${worksrcpath} \
+        COPYING \
+        README.txt \
+        ${docdir}
+}


Property changes on: trunk/dports/devel/aap/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/devel/aap/files/patch-destroot.diff
===================================================================
--- trunk/dports/devel/aap/files/patch-destroot.diff	                        (rev 0)
+++ trunk/dports/devel/aap/files/patch-destroot.diff	2010-10-15 00:25:17 UTC (rev 72433)
@@ -0,0 +1,120 @@
+--- aap-1.091.orig/main.aap	2010-02-10 14:55:04.000000000 +1100
++++ aap-1.091/main.aap	2010-02-10 15:49:17.000000000 +1100
+@@ -5,7 +5,7 @@
+ :attr all {comment = Same as "test"}
+ :attr clean {comment = Cleanup after testing}
+ :attr fetch {comment = Obtain latest version from CVS}
+-:attr install {comment = Install Aap; use PREFIX=path to specify where; use FULLDOCS=no to skip installing HTML and PDF docs; use HTMLDIR=/html to install HTML files in a subdirectory}
++:attr install {comment = Install Aap; use PREFIX=path and/or DESTDIR=path to specify where; use FULLDOCS=no to skip installing HTML and PDF docs; use HTMLDIR=/html to install HTML files in a subdirectory}
+ :attr uninstall {comment = Uninstall current version of Aap; use PREFIX=path to specify where; use VERSION=1.123 to specify a different version}
+ :attr tags {comment = Create a tags file (requires Exuberant ctags)}
+ 
+@@ -31,15 +31,16 @@
+ install:
+     @if os.name == 'posix':
+ 	PREFIX = `os.path.expanduser(_no.PREFIX)`
+-	@if not os.access(_no.PREFIX, os.W_OK):
+-	    @if os.access(_no.PREFIX, os.R_OK):
+-                :error Install directory is not writable: $PREFIX
+-            @r = raw_input(('\nThe $PREFIX directory does not exist: "%s"\n'
+-            @               % _no.PREFIX) +
++	DESTDIR = $DESTDIR$PREFIX
++	@if not os.access(_no.DESTDIR, os.W_OK):
++	    @if os.access(_no.DESTDIR, os.R_OK):
++                :error Install directory is not writable: $DESTDIR
++            @r = raw_input(('\nThe $DESTDIR directory does not exist: "%s"\n'
++            @               % _no.DESTDIR) +
+             @           "Do you want to try creating it? (y/n) ")
+             @if not r or (r[0] != 'y' and r[0] != 'Y'):
+-                :error Install directory does not exist: $PREFIX
+-            :mkdir {r} $PREFIX
++                :error Install directory does not exist: $DESTDIR
++            :mkdir {r} $DESTDIR
+ 
+ 	# Get the version string from AapVersion.py, because $VERSIONSTR is
+ 	# from the current Aap, which may be older.
+@@ -47,16 +48,22 @@
+ 				    stdin).group(1) | :assign Version
+ 
+ 	# Directories to be used.
+-	dir = $PREFIX/lib/aap/Exec-$Version
++	dir = $DESTDIR/lib/aap/Exec-$Version
+ 	toolsdir = $dir/tools
+ 	modulesdir = $dir/modules
+ 	docdir = $dir/doc
+ 	htmldocdir = $docdir$?HTMLDIR
+-	bindir = $PREFIX/bin
+-	mandir = $PREFIX/man/man1
+-	sharedocdir = $PREFIX/share/doc
++	bindir = $DESTDIR/bin
++	mandir = $DESTDIR/share/man/man1
++	sharedocdir = $DESTDIR/share/doc
+ 	sharedocdiraap = $sharedocdir/aap
+ 	sharehtmldocdir = $sharedocdiraap$?HTMLDIR
++	prefixdir = $PREFIX/lib/aap/Exec-$Version
++	prefixdocdir = $dir/doc
++	prefixhtmldocdir = $docdir$?HTMLDIR
++	prefixsharedocdir = $PREFIX/share/doc
++	prefixsharedocdiraap = $sharedocdir/aap
++	prefixsharehtmldocdir = $sharedocdiraap$?HTMLDIR
+ 
+ 	# Copy the files.
+ 	:mkdir {r}{f} $toolsdir $modulesdir
+@@ -73,10 +80,10 @@
+ 	    # Create symbolic links for the docs dir.
+ 	    @if os.path.exists(sharedocdir):
+ 		:print Creating a symbolic link for "aap" in $sharedocdir
+-		:symlink {f} $docdir $sharedocdiraap
+-		indexstr = $sharehtmldocdir/index.html
+-		htmlstr = $sharehtmldocdir/*.html
+-		pdfstr = $sharedocdiraap/exec.pdf
++		:symlink {f} $prefixdocdir $sharedocdiraap
++		indexstr = $prefixsharehtmldocdir/index.html
++		htmlstr = $prefixsharehtmldocdir/*.html
++		pdfstr = $prefixsharedocdiraap/exec.pdf
+ 	    @else:
+ 		indexstr = $htmldocdir/index.html
+ 		htmlstr = $htmldocdir/*.html
+@@ -116,7 +123,7 @@
+ 	# Create symbolic links for the program.
+ 	:print Creating a symbolic link for "aap" in $bindir
+ 	:mkdir {f} $bindir
+-	:symlink {f} $dir/aap $bindir/aap
++	:symlink {f} $prefixdir/aap $bindir/aap
+ 
+     @elif os.name in ["win32", "mswin", "nt"]:
+ 	# On MS-Windows we write an aap.bat file in the Windows directory.
+@@ -156,26 +163,27 @@
+ uninstall:
+     @if os.name == 'posix':
+ 	PREFIX = `os.path.expanduser(_no.PREFIX)`
+-	@if not os.access(_no.PREFIX, os.W_OK):
+-	    :error Install directory is not writable: $PREFIX
++	DESTDIR = $DESTDIR$PREFIX
++	@if not os.access(_no.DESTDIR, os.W_OK):
++	    :error Install directory is not writable: $DESTDIR
+ 
+ 	# What version to uninstall?  Default is what we are currently running.
+ 	VERSION ?= $VERSIONSTR
+ 
+-	dir = $PREFIX/lib/aap/Exec-$VERSION
+-	mandir = $PREFIX/man/man1
++	dir = $DESTDIR/lib/aap/Exec-$VERSION
++	mandir = $DESTDIR/share/man/man1
+ 
+ 	# Only delete the bin/aap and share/doc symlinks if they point to the
+ 	# version we uninstalled.
+ 	@try:
+-	    n = $PREFIX/bin/aap
++	    n = $DESTDIR/bin/aap
+ 	    @if string.find(os.readlink(n), _no.VERSION) >= 0:
+ 	        :del {f} $n
+ 	@except:
+ 	@   pass
+ 
+ 	@try:
+-	    n = $PREFIX/share/doc/aap
++	    n = $DESTDIR/share/doc/aap
+ 	    @if string.find(os.readlink(n), _no.VERSION) >= 0:
+ 	        :del {f} $n
+ 	@except:

Added: trunk/dports/devel/aap/files/patch-python26.diff
===================================================================
--- trunk/dports/devel/aap/files/patch-python26.diff	                        (rev 0)
+++ trunk/dports/devel/aap/files/patch-python26.diff	2010-10-15 00:25:17 UTC (rev 72433)
@@ -0,0 +1,8 @@
+--- aap-1.091.orig/aap	2010-02-10 14:55:04.000000000 +1100
++++ aap-1.091/aap	2010-02-10 15:34:29.000000000 +1100
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env python
++#!@@PREFIX@@/bin/python2.6
+ # Part of the A-A-P recipe executive: The main program.
+ 
+ # Copyright (C) 2002-2003 Stichting NLnet Labs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101014/cb330a81/attachment.html>


More information about the macports-changes mailing list