Browse Source

* updated adgen (1.2.2 -> 2.0.0)

git-svn-id: svn://svn.opensde.net/opensde/package/trunk@21379 10447126-35f2-4685-b0cf-6dd780d3921f
early
Minto van der Sluis 18 years ago
parent
commit
0c9386e276
  1. 38
      textproc/adgen/adgen.conf
  2. 4
      textproc/adgen/adgen.desc
  3. 22
      textproc/adgen/library-relocation.patch

38
textproc/adgen/adgen.conf

@ -20,42 +20,24 @@ makeinstopt=''
pkgprefix -t python pkgprefix -t python
adgen_postmake () { adgen_postmake () {
BINDIR="$root$bindir" local BINDIR="$root$bindir"
LIBDIR="$root$libdir/ADGen" local LIBDIR="$root$libdir/adgen"
# creating directory layout # creating directory layout
mkdir -pv $BINDIR $LIBDIR mkdir -pv $BINDIR $LIBDIR
# Make sure the adgen script know where the libraries will # Make sure the adgen script knows where the libraries will
# be installed. # be installed. (LIBDIR was patched into adgen.py)
sed -i "s,\$LIBDIR,$LIBDIR," ADGen.py sed -i "s,\$LIBDIR,$LIBDIR," adgen.py
# Make it executable # Make it executable
chmod 755 ADGen.py chmod 755 adgen.py
mv ADGen.py adgen
# Create the script to pre compile .py files
cat <<-EOT > compile.py
#!/usr/bin/env python
import sys
import py_compile
for lib in sys.argv:
try:
py_compile.compile(lib)
except PyCompileError:
print "Error Compiling: " + lib
sys.exit()
EOT
# Have the libraries compiled.
$(pkgprefix bindir python)/python compile.py *.py
rm -f compile.*
# Install the whole bunch # Install the whole bunch
cp -av adgen $BINDIR/adgen cp -av adgen.py $BINDIR/adgen
cp -av *.py $LIBDIR for dir in "config ftp util"; do
cp -av *.pyc $LIBDIR cp -av $dir $LIBDIR/
done
} }
hook_add postmake 5 adgen_postmake hook_add postmake 5 adgen_postmake

4
textproc/adgen/adgen.desc

@ -31,7 +31,7 @@
[L] GPL [L] GPL
[S] Stable [S] Stable
[V] 1.2.2 [V] 2.0.0
[P] X -----5---9 700.100 [P] X -----5---9 700.100
[D] 3465808948 ADGen-1.2.2.zip http://dl.sf.net/sourceforge/adgen4asciidoc/ [D] 1782965130 adgen-2.0.0.zip http://dl.sf.net/sourceforge/adgen4asciidoc/

22
textproc/adgen/library-relocation.patch

@ -14,20 +14,18 @@
# version. # version.
# --- SDE-COPYRIGHT-NOTE-END --- # --- SDE-COPYRIGHT-NOTE-END ---
diff -ur ADGen.orig/ADGen.py ADGen/ADGen.py diff -u -r adgen.orig/adgen.py adgen/adgen.py
--- ADGen.orig/ADGen.py 2007-03-25 17:13:12.000000000 +0200 --- adgen.orig/adgen.py 2007-05-02 23:03:00.000000000 +0200
+++ ADGen/ADGen.py 2007-03-25 17:52:56.000000000 +0200 +++ adgen/adgen.py 2007-06-17 13:11:21.000000000 +0200
@@ -24,6 +24,9 @@ @@ -29,6 +29,7 @@
# ----------------------------------------------------------------------------- import os
## import shutil
import sys
+import sys
+sys.path.append("$LIBDIR") +sys.path.append("$LIBDIR")
+
import ADGenDebug
from ADGenDebug import debug
@@ -440,4 +443,4 @@ import util.adgenDebug as adgenDebug
import util.adgenI18N as adgenI18N
@@ -616,4 +617,4 @@
pass pass
if __name__ == "__main__": if __name__ == "__main__":

Loading…
Cancel
Save