public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:fixing commit in: sci-chemistry/specView/
Date: Sun, 16 Jun 2013 15:53:45 +0000 (UTC)	[thread overview]
Message-ID: <1371395737.3e1cb4dc9866f4cebd8eeedfac3ff142c872a7d2.jlec@gentoo> (raw)
Message-ID: <20130616155345.vtJFZ-JIkjxsD0OYM1guuA4W3EKiXd7uILuntNJsNYM@z> (raw)

commit:     3e1cb4dc9866f4cebd8eeedfac3ff142c872a7d2
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 16 15:15:37 2013 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Jun 16 15:15:37 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=3e1cb4dc

sci-chemistry/specView: Bump to EAPI=5 and python-single-r1.eclass

Package-Manager: portage-2.2.0_alpha180

---
 sci-chemistry/specView/ChangeLog             |  3 ++
 sci-chemistry/specView/specView-1.0.2.ebuild | 52 +++++++++-------------------
 2 files changed, 19 insertions(+), 36 deletions(-)

diff --git a/sci-chemistry/specView/ChangeLog b/sci-chemistry/specView/ChangeLog
index 09193d6..b6fe2af 100644
--- a/sci-chemistry/specView/ChangeLog
+++ b/sci-chemistry/specView/ChangeLog
@@ -2,6 +2,9 @@
 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  16 Jun 2013; Justin Lecher <jlec@gentoo.org> specView-1.0.2.ebuild:
+  Bump to EAPI=5 and python-single-r1.eclass
+
   03 Mar 2013; Justin Lecher <jlec@gentoo.org> specView-1.0.2.ebuild,
   metadata.xml:
   Fix quoting

diff --git a/sci-chemistry/specView/specView-1.0.2.ebuild b/sci-chemistry/specView/specView-1.0.2.ebuild
index 89666a6..a0a5bac 100644
--- a/sci-chemistry/specView/specView-1.0.2.ebuild
+++ b/sci-chemistry/specView/specView-1.0.2.ebuild
@@ -2,11 +2,11 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
-EAPI=4
+EAPI=5
 
-PYTHON_DEPEND="2"
+PYTHON_COMPAT=( python{2_6,2_7} )
 
-inherit python toolchain-funcs
+inherit multilib python-single-r1 toolchain-funcs
 
 DESCRIPTION="Fast way to visualise NMR spectrum and peak data"
 HOMEPAGE="http://www.ccpn.ac.uk/software/specview"
@@ -18,8 +18,8 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
 IUSE=""
 
 RDEPEND="
-	dev-python/pyopengl
-	dev-python/pyside[webkit]"
+	dev-python/pyopengl[${PYTHON_USEDEP}]
+	dev-python/pyside[webkit,${PYTHON_USEDEP}]"
 DEPEND="${RDEPEND}"
 
 S="${WORKDIR}"/ccpnmr/ccpnmr3.0/
@@ -30,11 +30,6 @@ S="${WORKDIR}"/ccpnmr/ccpnmr3.0/
 #unbundle inchi
 #parallel build
 
-pkg_setup() {
-	python_set_active_version 2
-	python_pkg_setup
-}
-
 src_prepare() {
 	sed \
 		-e "s|/usr|"${EPREFIX}"/usr|g" \
@@ -43,7 +38,7 @@ src_prepare() {
 		-e "/^OPT_FLAG/s:=.*$:= ${CFLAGS}:g" \
 		-e "/^LINK_FLAGS/s:$: ${LDFLAGS}:g" \
 		-e "/^PYTHON_DIR/s:=.*:= "${EPREFIX}"/usr:g" \
-		-e "/^PYTHON_LIB/s:=.*:= $(python_get_library -l):g" \
+		-e "/^PYTHON_LIB/s:=.*:= $(python_get_LIBS):g" \
 		-e "/^PYTHON_INCLUDE_FLAGS/s:=.*:= -I"${EPREFIX}"$(python_get_includedir) -I"${EPREFIX}"$(python_get_sitedir)/numpy/core/include/numpy:g" \
 		-e "/^PYTHON_LIB_FLAGS/s:=.*:= -L"${EPREFIX}"/usr/$(get_libdir):g" \
 		-e "/^SHARED_FLAGS/s:=.*:= -shared:g" \
@@ -72,37 +67,22 @@ src_install() {
 	find . -name "*.pyc" -type f -delete
 	dodir /usr/bin
 	sed \
-	-e "s|gentoo_sitedir|${EPREFIX}$(python_get_sitedir)|g" \
-	-e "s|gentoolibdir|${EPREFIX}/usr/${libdir}|g" \
-	-e "s|gentootk|${EPREFIX}/usr/${libdir}/tk${tkver}|g" \
-	-e "s|gentootcl|${EPREFIX}/usr/${libdir}/tclk${tkver}|g" \
-	-e "s|gentoopython|$(PYTHON -a)|g" \
-	-e "s|gentoousr|${EPREFIX}/usr|g" \
-	-e "s|//|/|g" \
+		-e "s|gentoo_sitedir|${EPREFIX}$(python_get_sitedir)|g" \
+		-e "s|gentoolibdir|${EPREFIX}/usr/${libdir}|g" \
+		-e "s|gentootk|${EPREFIX}/usr/${libdir}/tk${tkver}|g" \
+		-e "s|gentootcl|${EPREFIX}/usr/${libdir}/tclk${tkver}|g" \
+		-e "s|gentoopython|${PYTHON}|g" \
+		-e "s|gentoousr|${EPREFIX}/usr|g" \
+		-e "s|//|/|g" \
 		"${FILESDIR}"/${PN} > "${ED}"/usr/bin/${PN} || die
 	fperms 755 /usr/bin/${PN}
 
-	insinto ${in_path}
-
 	dodir ${in_path}/cNg
 	rm -rf cNg || die
 
 	ebegin "Installing main files"
-		doins -r *
-	eend
-
-	ebegin "Adjusting permissions"
-
-	for _file in $(find "${ED}" -type f -name "*so"); do
-		chmod 755 ${_file}
-	done
+	python_moduleinto ${PN}
+	python_domodule *
 	eend
-}
-
-pkg_postinst() {
-	python_mod_optimize ${PN}
-}
-
-pkg_postrm() {
-	python_mod_cleanup ${PN}
+	python_optimize
 }


             reply	other threads:[~2013-06-16 15:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-16 15:53 Justin Lecher [this message]
2013-06-16 15:53 ` [gentoo-commits] proj/sci:fixing commit in: sci-chemistry/specView/ Justin Lecher
  -- strict thread matches above, loose matches on Subject: below --
2014-04-25 14:32 [gentoo-commits] proj/sci:master " Justin Lecher
2014-03-26  7:59 Justin Lecher
2014-01-08 11:20 Justin Lecher
2013-08-12 21:27 Sebastien Fabbro
2013-07-22 13:14 Justin Lecher
2013-07-19 14:27 Justin Lecher
2013-07-19 12:59 Justin Lecher
2013-03-03 17:52 Justin Lecher
2012-09-21  9:48 Justin Lecher
2012-09-21  8:15 Justin Lecher
2012-09-21  8:13 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1371395737.3e1cb4dc9866f4cebd8eeedfac3ff142c872a7d2.jlec@gentoo \
    --to=jlec@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox