Set SUPPORT_PYTHON_ABIS (bug #312099).
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Thu, 8 Apr 2010 19:26:12 +0000 (19:26 +0000)
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Thu, 8 Apr 2010 19:26:12 +0000 (19:26 +0000)
Package-Manager: portage-HEAD/cvs/Linux x86_64

app-text/duali/ChangeLog
app-text/duali/duali-0.2.0.ebuild

index c772b4cfa7773cecaf025d106daabf97084079e0..fb4e19f9104616c9250cbbc64c1885bb99c2c240 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for app-text/duali
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/duali/ChangeLog,v 1.13 2007/01/30 01:03:46 caster Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/duali/ChangeLog,v 1.14 2010/04/08 19:26:12 arfrever Exp $
+
+  08 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  duali-0.2.0.ebuild:
+  Set SUPPORT_PYTHON_ABIS (bug #312099).
 
   30 Jan 2007; Vlastimil Babka <caster@gentoo.org> ChangeLog:
   Fix manifest.
index 165e9b5727693300eb770a75a5ccc7f6ed7b94a7..ccf97d9d9c4c012cd175efdceca4bf712837f0ae 100644 (file)
@@ -1,32 +1,48 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/duali/duali-0.2.0.ebuild,v 1.1 2007/01/22 20:04:01 antarus Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/duali/duali-0.2.0.ebuild,v 1.2 2010/04/08 19:26:12 arfrever Exp $
 
-inherit distutils
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
 
-IUSE=""
+inherit python
 
 DESCRIPTION="Arabic dictionary based on the DICT protocol"
 HOMEPAGE="http://www.arabeyes.org/project.php?proj=Duali"
 SRC_URI="mirror://sourceforge/arabeyes/${P}.tar.bz2"
 
-SLOT="0"
 LICENSE="as-is"
-KEYWORDS="~x86 ~amd64 ~ia64 ~ppc ~sparc ~alpha ~hppa ~mips"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86"
+IUSE=""
 
-DEPEND="dev-lang/python"
+DEPEND=""
 PDEPEND="app-dicts/duali-data"
+RESTRICT_PYTHON_ABIS="3.*"
 
 src_install() {
-       into /usr
        dobin duali dict2db trans2arabic arabic2trans
+       python_convert_shebangs -r 2 "${ED}usr/bin"
+
        insinto /etc
        doins duali.conf
+
        doman doc/man/*
 
-       distutils_python_version
-       insinto /usr/lib/python${PYVER}/site-packages/pyduali
-       doins pyduali/*.py
+       installation() {
+               insinto $(python_get_sitedir)/pyduali
+               doins pyduali/*.py
+       }
+       python_execute_function installation
 
        dodoc README ChangeLog INSTALL MANIFEST
 }
+
+pkg_postinst() {
+       python_mod_optimize pyduali
+}
+
+pkg_postrm() {
+       python_mod_cleanup pyduali
+}