4suite-1.0.2-r1

Published: 31.08.2010

Python tools for XML processing and object-databases.

Project homepage: 4suite.org 4suite

This is toolkit for XML and RDF application development. This library is dependency needed by pylotro ebuild for Lord Of The Ring Linux luncher I wrote some time ago.

The ebuild is copied from Portage Tree without any changes. I decided to put this ebuild into my overlay because I noticed that this package is currently hard masked for removal by Gentoo Linux Developers. I need it to use pylotro package which is also available in my overlay.

To use this ebuild run following commands in terminal:

echo "=dev-python/4suite-1.0.2-r1" >> /etc/portage/package.keywords
echo "=dev-python/4suite-1.0.2-r1" >> /etc/portage/package.unmask
emerge -av =dev-python/4suite-1.0.2-r1

View the source of the ebuild
  1. # Copyright 1999-2010 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: /var/cvsroot/gentoo-x86/dev-python/4suite/4suite-1.0.2-r1.ebuild,v 1.10 2010/07/21 21:46:04 arfrever Exp $
  4.  
  5. EAPI="3"
  6. PYTHON_DEPEND="2"
  7. SUPPORT_PYTHON_ABIS="1"
  8. RESTRICT_PYTHON_ABIS="3.*"
  9.  
  10. inherit distutils eutils
  11.  
  12. MY_P="4Suite-XML-${PV}"
  13.  
  14. DESCRIPTION="Python tools for XML processing and object-databases."
  15. HOMEPAGE="http://www.4suite.org/ http://pypi.python.org/pypi/4Suite"
  16. SRC_URI="mirror://sourceforge/foursuite/${MY_P}.tar.bz2"
  17.  
  18. LICENSE="Apache-1.1"
  19. SLOT="0"
  20. KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86"
  21. IUSE="doc"
  22.  
  23. DEPEND=">=dev-python/pyxml-0.8.4"
  24. RDEPEND="${DEPEND}"
  25.  
  26. PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
  27.  
  28. DOCS="docs/*.txt"
  29. PYTHON_MODNAME="Ft"
  30.  
  31. S=${WORKDIR}/${MY_P}
  32.  
  33. src_prepare() {
  34. epatch "${FILESDIR}/${P}-amd64_python2.5.patch"
  35. epatch "${FILESDIR}/${P}-config.patch"
  36.  
  37. # Improve handling of package versions with '+' character.
  38. sed -e $'/self._original = vstring/a\\\n vstring = vstring.rstrip(\'+\')' -i Ft/Lib/DistExt/Version.py || die "sed failed"
  39.  
  40. if ! use doc; then
  41. sed -e "/'build_docs'/d" -i Ft/Lib/DistExt/Build.py || die "sed failed"
  42. fi
  43. distutils_src_prepare
  44. }
  45.  
  46. src_configure() {
  47. configuration() {
  48. "$(PYTHON)" setup.py config \
  49. --prefix=/usr \
  50. --docdir=/usr/share/doc/${PF} \
  51. --datadir=/usr/share/${PN} \
  52. --libdir="$(python_get_sitedir)" || die "setup.py config failed with Python ${PYTHON_ABI}"
  53. }
  54. python_execute_function configuration
  55. }
  56.  
  57. src_install() {
  58. distutils_src_install $(use_with doc docs)
  59.  
  60. delete_profiles_and_tests() {
  61. rm -fr "${ED}$(python_get_sitedir)/"{profiles,tests}
  62. }
  63. python_execute_function -q delete_profiles_and_tests
  64. }

Here is the list of all the 4suite ebuild versions that are available in my overlay:



Comments

If you have found something wrong with the information provided above or maybe you just want to speak your mind about it, feel free to leave a comment.
All comments will show up on page after being approved. Sorry for such policy but I want to make sure that my site will be free of abusive or vulgar content. I don't mind being criticized just do it using right words.

Leave a comment