public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/sci:master commit in: dev-python/Forthon/, dev-python/Forthon/files/
@ 2013-02-21  9:58 Kacper Kowalik
  0 siblings, 0 replies; 2+ messages in thread
From: Kacper Kowalik @ 2013-02-21  9:58 UTC (permalink / raw
  To: gentoo-commits

commit:     3af4d0f40b554b2b1747945e20770946f622e520
Author:     Kacper Kowalik (Xarthisius) <xarthisius <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 21 09:58:33 2013 +0000
Commit:     Kacper Kowalik <xarthisius <AT> gentoo <DOT> org>
CommitDate: Thu Feb 21 09:58:33 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=3af4d0f4

[dev-python/Forthon] Fix option parser to take into account that wrapper filename may have a suffix, use dodoc/docinto. Thanks to Michał Górny <mgorny <AT> gentoo.org> for his help on this

---
 dev-python/Forthon/Forthon-0.8.11.ebuild           |    7 ++++---
 .../files/Forthon-0.8.11-fix_options_parser.patch  |   17 +++++++++++++++++
 2 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/dev-python/Forthon/Forthon-0.8.11.ebuild b/dev-python/Forthon/Forthon-0.8.11.ebuild
index 2383f9b..cd35606 100644
--- a/dev-python/Forthon/Forthon-0.8.11.ebuild
+++ b/dev-python/Forthon/Forthon-0.8.11.ebuild
@@ -5,7 +5,7 @@
 EAPI=5
 PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} )
 
-inherit distutils-r1
+inherit eutils distutils-r1
 
 DESCRIPTION="Python interface generator for Fortran based codes"
 HOMEPAGE="http://hifweb.lbl.gov/Forthon http://pypi.python.org/pypi/Forthon"
@@ -18,14 +18,15 @@ IUSE="examples"
 
 python_prepare_all() {
 	sed -i -e "/data_files/ s/'License.txt',//" setup.py || die
+	epatch "${FILESDIR}"/${P}-fix_options_parser.patch
 	distutils-r1_python_prepare_all
 }
 
 python_install_all() {
 	dohtml docs/index.html
 	if use examples ; then
-		insinto /usr/share/doc/${PF}
-		doins -r {example,example2,simpleexample}
+		docinto /usr/share/doc/${PF}
+		dodoc -r {example,example2,simpleexample}
 	fi
 	distutils-r1_python_install_all
 }

diff --git a/dev-python/Forthon/files/Forthon-0.8.11-fix_options_parser.patch b/dev-python/Forthon/files/Forthon-0.8.11-fix_options_parser.patch
new file mode 100644
index 0000000..6a5bfc1
--- /dev/null
+++ b/dev-python/Forthon/files/Forthon-0.8.11-fix_options_parser.patch
@@ -0,0 +1,17 @@
+In order to allow for installation of package for multiple versions of Python
+Linux distribution often provide wrappers with correct shebangs tied to specific
+Python implementation, e.g. Forthon-2.7, Forthon-python2.7, etc.
+This patch fixes logic in Forthon_options to take that into account
+
+Patch written by Kacper Kowalik <xarthisius@gentoo.org>
+--- a/Lib/Forthon_options.py
++++ b/Lib/Forthon_options.py
+@@ -92,7 +92,7 @@ class InputError(Exception):
+ # --- Otherwise ignore the arguments. This is needed since for example this
+ # --- module may be imported by the compilers module which is used by some
+ # --- program other than Forthon.
+-if os.path.basename(sys.argv[0]) == 'Forthon' or sys.argv[0] == '-c':
++if os.path.basename(sys.argv[0]).startswith('Forthon') or sys.argv[0] == '-c':
+     (options, args) = parser.parse_args()
+ else:
+     (options, args) = parser.parse_args(args=[])


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-python/Forthon/, dev-python/Forthon/files/
@ 2013-11-26 22:30 Sebastien Fabbro
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastien Fabbro @ 2013-11-26 22:30 UTC (permalink / raw
  To: gentoo-commits

commit:     3622ec45c90e43328a3d27dbef75120d360fdfbe
Author:     Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 26 21:04:27 2013 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Tue Nov 26 21:04:27 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=3622ec45

dev-python/Forthon: Version bump, keyworded for prefix

Package-Manager: portage-2.2.7-prefix
RepoMan-Options: --force

---
 dev-python/Forthon/ChangeLog                            |  8 +++++++-
 .../{Forthon-0.8.12.ebuild => Forthon-0.8.13.ebuild}    |  4 ++--
 .../files/Forthon-0.8.11-fix_options_parser.patch       | 17 -----------------
 dev-python/Forthon/metadata.xml                         | 11 +++++++++++
 4 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/dev-python/Forthon/ChangeLog b/dev-python/Forthon/ChangeLog
index 2537281..0bc57f1 100644
--- a/dev-python/Forthon/ChangeLog
+++ b/dev-python/Forthon/ChangeLog
@@ -2,7 +2,13 @@
 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*Forthon-0.8.13 (26 Nov 2013)
+
+  26 Nov 2013; Sébastien Fabbro <bicatali@gentoo.org> +Forthon-0.8.13.ebuild,
+  -Forthon-0.8.12.ebuild, -files/Forthon-0.8.11-fix_options_parser.patch,
+  metadata.xml:
+  dev-python/Forthon: Version bump, keyworded for prefix
+
   03 Mar 2013; Justin Lecher <jlec@gentoo.org> Forthon-0.8.11.ebuild,
   metadata.xml:
   Correct license name
-

diff --git a/dev-python/Forthon/Forthon-0.8.12.ebuild b/dev-python/Forthon/Forthon-0.8.13.ebuild
similarity index 86%
rename from dev-python/Forthon/Forthon-0.8.12.ebuild
rename to dev-python/Forthon/Forthon-0.8.13.ebuild
index a4d068e..013179f 100644
--- a/dev-python/Forthon/Forthon-0.8.12.ebuild
+++ b/dev-python/Forthon/Forthon-0.8.13.ebuild
@@ -8,12 +8,12 @@ PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
 inherit eutils distutils-r1
 
 DESCRIPTION="Python interface generator for Fortran based codes"
-HOMEPAGE="http://hifweb.lbl.gov/Forthon http://pypi.python.org/pypi/Forthon"
+HOMEPAGE="http://hifweb.lbl.gov/Forthon"
 SRC_URI="http://hifweb.lbl.gov/${PN}/${P}.tgz"
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="examples"
 
 python_prepare_all() {

diff --git a/dev-python/Forthon/files/Forthon-0.8.11-fix_options_parser.patch b/dev-python/Forthon/files/Forthon-0.8.11-fix_options_parser.patch
deleted file mode 100644
index 6a5bfc1..0000000
--- a/dev-python/Forthon/files/Forthon-0.8.11-fix_options_parser.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-In order to allow for installation of package for multiple versions of Python
-Linux distribution often provide wrappers with correct shebangs tied to specific
-Python implementation, e.g. Forthon-2.7, Forthon-python2.7, etc.
-This patch fixes logic in Forthon_options to take that into account
-
-Patch written by Kacper Kowalik <xarthisius@gentoo.org>
---- a/Lib/Forthon_options.py
-+++ b/Lib/Forthon_options.py
-@@ -92,7 +92,7 @@ class InputError(Exception):
- # --- Otherwise ignore the arguments. This is needed since for example this
- # --- module may be imported by the compilers module which is used by some
- # --- program other than Forthon.
--if os.path.basename(sys.argv[0]) == 'Forthon' or sys.argv[0] == '-c':
-+if os.path.basename(sys.argv[0]).startswith('Forthon') or sys.argv[0] == '-c':
-     (options, args) = parser.parse_args()
- else:
-     (options, args) = parser.parse_args(args=[])

diff --git a/dev-python/Forthon/metadata.xml b/dev-python/Forthon/metadata.xml
index ef58ee2..114375b 100644
--- a/dev-python/Forthon/metadata.xml
+++ b/dev-python/Forthon/metadata.xml
@@ -5,4 +5,15 @@
     <email>xarthisius@gentoo.org</email>
     <name>Kacper Kowalik</name>
   </maintainer>
+<longdescription>
+  Forthon generates links between Fortran95 and Python. Python is a high
+  level, object oriented, interactive and scripting language that allows
+  a flexible and versatile interface to computational tools. The Forthon
+  package generates the necessary wrapping code which allows access to
+  the Fortran database and to the Fortran subroutines and
+  functions. This provides a development package where the
+  computationally intensive parts of a code can be written in efficient
+  Fortran, and the high level controlling code can be written in the
+  much more versatile Python language.
+</longdescription>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-26 22:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-21  9:58 [gentoo-commits] proj/sci:master commit in: dev-python/Forthon/, dev-python/Forthon/files/ Kacper Kowalik
  -- strict thread matches above, loose matches on Subject: below --
2013-11-26 22:30 Sebastien Fabbro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox