Browse Source

* added adgen (1.2.1) - Asciidoc based website generator

git-svn-id: svn://svn.opensde.net/opensde/package/trunk@20578 10447126-35f2-4685-b0cf-6dd780d3921f
early
Minto van der Sluis 18 years ago
parent
commit
dfa3689edb
  1. 61
      textproc/adgen/adgen.conf
  2. 37
      textproc/adgen/adgen.desc
  3. 36
      textproc/adgen/library-relocation.patch

61
textproc/adgen/adgen.conf

@ -0,0 +1,61 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../adgen/adgen.conf
# Copyright (C) 2007 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
# Prevent executing normal make and install build steps.
# This package has custom make and install.
makeopt=''
makeinstopt=''
pkgprefix -t python
adgen_postmake () {
BINDIR="$root$bindir"
LIBDIR="$root$libdir/ADGen"
# creating directory layout
mkdir -pv $BINDIR $LIBDIR
# Make sure the adgen script know where the libraries will
# be installed.
sed -i "s,\$LIBDIR,$LIBDIR," ADGen.py
# Make it executable
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
cp -av adgen $BINDIR/adgen
cp -av *.py $LIBDIR
cp -av *.pyc $LIBDIR
}
hook_add postmake 5 adgen_postmake

37
textproc/adgen/adgen.desc

@ -0,0 +1,37 @@
[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN ---
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY]
[COPY] Filename: package/.../adgen/adgen.desc
[COPY] Copyright (C) 2007 The OpenSDE Project
[COPY]
[COPY] More information can be found in the files COPYING and README.
[COPY]
[COPY] This program is free software; you can redistribute it and/or modify
[COPY] it under the terms of the GNU General Public License as published by
[COPY] the Free Software Foundation; version 2 of the License. A copy of the
[COPY] GNU General Public License can be found in the file COPYING.
[COPY] --- SDE-COPYRIGHT-NOTE-END ---
[I] Asciidoc based website generator
[T] The ADGen application was developed in order to simplify the generation
[T] of the pages of this site.
[T] Programmed in Python and based on a file of configuration XML, ADGen
[T] allows to automate the file conversion respecting the AsciiDoc format.
[T] Moreover, its structure allows the creation of a folder hierarchy in
[T] order to simplify the classification of files.
[U] http://www.rapazp.ch/opensource/tools/asciidoc.en.html
[A] Pascal Rapaz <pascal.rapaz@rapazp.ch>
[M] The OpenSDE Community <list@opensde.org>
[C] extra/development
[L] GPL
[S] Stable
[V] 1.2.1
[P] X -----5---9 700.100
[D] 3417703678 ADGen-1.2.1.zip http://dl.sf.net/sourceforge/adgen4asciidoc/

36
textproc/adgen/library-relocation.patch

@ -0,0 +1,36 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../adgen/library-relocation.patch
# Copyright (C) 2007 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
diff -ur ADGen.orig/ADGen.py ADGen/ADGen.py
--- ADGen.orig/ADGen.py 2007-03-25 17:13:12.000000000 +0200
+++ ADGen/ADGen.py 2007-03-25 17:52:56.000000000 +0200
@@ -24,6 +24,9 @@
# -----------------------------------------------------------------------------
##
+import sys
+sys.path.append("$LIBDIR")
+
import ADGenDebug
from ADGenDebug import debug
@@ -440,4 +443,4 @@
pass
if __name__ == "__main__":
- BuildWebSite()
\ No newline at end of file
+ BuildWebSite()
Loading…
Cancel
Save