svn commit: r382486 - in head/emulators/dynagen: . files
Kurt Jaeger
pi at FreeBSD.org
Sat Mar 28 14:38:51 UTC 2015
Author: pi
Date: Sat Mar 28 14:38:49 2015
New Revision: 382486
URL: https://svnweb.freebsd.org/changeset/ports/382486
QAT: https://qat.redports.org/buildarchive/r382486/
Log:
emulators/dynagen: shebangfix for python in the scripts instead of patches
PR: 194215
Submitted by: Pavel Volkov <pavelivolkov at gmail.com> (maintainer)
Reviewed by: marino
Added:
head/emulators/dynagen/files/setup.py (contents, props changed)
Deleted:
head/emulators/dynagen/files/patch-confConsole.py
head/emulators/dynagen/files/patch-console.py
head/emulators/dynagen/files/patch-dynagen
head/emulators/dynagen/files/patch-dynamips_lib.py
head/emulators/dynagen/files/patch-pemu_lib.py
head/emulators/dynagen/files/patch-setup.py
Modified:
head/emulators/dynagen/Makefile
Modified: head/emulators/dynagen/Makefile
==============================================================================
--- head/emulators/dynagen/Makefile Sat Mar 28 14:37:28 2015 (r382485)
+++ head/emulators/dynagen/Makefile Sat Mar 28 14:38:49 2015 (r382486)
@@ -42,9 +42,24 @@ PORTEXAMPLES= *
PORTDATA= *
USES= dos2unix python
+
+USES+= shebangfix
+SHEBANG_FILES= *.py dynagen pemu-start.sh
+SHEBANG_LANG= python_env python_bol python_cnf
+python_CMD= ${PYTHON_CMD}
+python_env_OLD_CMD=/usr/bin/env[[:space:]]*python
+python_env_CMD= ${PYTHON_CMD}
+python_bol_OLD_CMD=the an incredible combination
+python_bol_CMD=|;9s|^python|${PYTHON_CMD}
+python_cnf_OLD_CMD=the an incredible combination
+python_cnf_CMD=|;s|^CONFIGSPECPATH.*|CONFIGSPECPATH = ['${PREFIX}/share/dynagen']
+
USE_PYTHON= distutils
ALL_TARGET= # empty
+post-extract:
+ @${CP} ${FILESDIR}/setup.py ${WRKSRC}
+
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/dynagen ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/dynagen.ini ${STAGEDIR}${PREFIX}/etc/dynagen.ini.sample
Added: head/emulators/dynagen/files/setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/dynagen/files/setup.py Sat Mar 28 14:38:49 2015 (r382486)
@@ -0,0 +1,21 @@
+#!/usr/bin/python
+
+"""Setup script for the dynagen module distribution."""
+# run this like python setup --root=/usr/local
+
+from distutils.core import setup, Extension
+
+setup( # Distribution meta-data
+ name = "dynagen",
+ version = "0.11.0",
+ description = "A frontend for dynamips",
+ author = "Greg Anuzelli",
+ author_email = "dynagen at gmail.com",
+ url = "http://sourceforge.net/projects/dyna-gen",
+ license = "GPLv2",
+ long_description = """Dynagen is a utility for use with the dynamips Cisco router simulator. It allows you to quickly provision and manage virtual networks using an INI like configuration file.""",
+ py_modules = ['confConsole','console','dynamips_lib','pemu_lib', 'pemubin', 'pemuwrapper']
+)
+
+print "If you have installed the modules, copy dynagen to some "
+print "place in your $PATH, like /usr/local/bin/."
More information about the svn-ports-all
mailing list