entropy 0.12.4 ebuild
git-svn-id: http://svn.sabayonlinux.org/overlay@1972 d7aec97c-591d-0410-af39-a8856400b30a
This commit is contained in:
@@ -39,6 +39,10 @@ EBUILD entropy-0.12.3.ebuild 3792 RMD160 2af203c5fabac927a4985d05e624545b2e0f0b4
|
||||
MD5 e83571293efdc81ccdd8885cb821543d entropy-0.12.3.ebuild 3792
|
||||
RMD160 2af203c5fabac927a4985d05e624545b2e0f0b4d entropy-0.12.3.ebuild 3792
|
||||
SHA256 d9fa756aaf5debf5bf370ddd609714610be866fdd7436d82f7775d299c8e4187 entropy-0.12.3.ebuild 3792
|
||||
EBUILD entropy-0.12.4.ebuild 3792 RMD160 2af203c5fabac927a4985d05e624545b2e0f0b4d SHA1 a4fd35fc0516ff609722c054fccad5b160bc92a6 SHA256 d9fa756aaf5debf5bf370ddd609714610be866fdd7436d82f7775d299c8e4187
|
||||
MD5 e83571293efdc81ccdd8885cb821543d entropy-0.12.4.ebuild 3792
|
||||
RMD160 2af203c5fabac927a4985d05e624545b2e0f0b4d entropy-0.12.4.ebuild 3792
|
||||
SHA256 d9fa756aaf5debf5bf370ddd609714610be866fdd7436d82f7775d299c8e4187 entropy-0.12.4.ebuild 3792
|
||||
MD5 b72cdd1d27edb4d775d3598add69f199 files/digest-entropy-0.10.1 241
|
||||
RMD160 13c2568a512e956c0aa0a91650b7993e796d9366 files/digest-entropy-0.10.1 241
|
||||
SHA256 14952b25206d49f0512824bdf34f61a81aa74890bb1e325ebbe844edb286a676 files/digest-entropy-0.10.1 241
|
||||
@@ -69,3 +73,6 @@ SHA256 14952b25206d49f0512824bdf34f61a81aa74890bb1e325ebbe844edb286a676 files/di
|
||||
MD5 b72cdd1d27edb4d775d3598add69f199 files/digest-entropy-0.12.3 241
|
||||
RMD160 13c2568a512e956c0aa0a91650b7993e796d9366 files/digest-entropy-0.12.3 241
|
||||
SHA256 14952b25206d49f0512824bdf34f61a81aa74890bb1e325ebbe844edb286a676 files/digest-entropy-0.12.3 241
|
||||
MD5 b72cdd1d27edb4d775d3598add69f199 files/digest-entropy-0.12.4 241
|
||||
RMD160 13c2568a512e956c0aa0a91650b7993e796d9366 files/digest-entropy-0.12.4 241
|
||||
SHA256 14952b25206d49f0512824bdf34f61a81aa74890bb1e325ebbe844edb286a676 files/digest-entropy-0.12.4 241
|
||||
|
||||
@@ -0,0 +1,143 @@
|
||||
# Copyright 2004-2007 Sabayon Linux
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
NEED_PYTHON=2.4
|
||||
|
||||
inherit eutils subversion distutils python multilib
|
||||
ESVN_REPO_URI="http://svn.sabayonlinux.org/projects/entropy/tags/${PV}"
|
||||
|
||||
DESCRIPTION="Official Sabayon Linux Package Manager Client (SVN release)"
|
||||
HOMEPAGE="http://www.sabayonlinux.org"
|
||||
PYTHON_MODNAME="pysqlite2"
|
||||
PYSQLITE_VER="2.3.5"
|
||||
PYSQLITE_DIRNAME="pysqlite"
|
||||
SRC_URI="http://initd.org/pub/software/pysqlite/releases/${PYSQLITE_VER:0:3}/${PYSQLITE_VER}/pysqlite-${PYSQLITE_VER}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 pysqlite"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
S="${WORKDIR}"/trunk
|
||||
|
||||
DEPEND=">=dev-db/sqlite-3.1
|
||||
!app-admin/equo
|
||||
sys-apps/diffutils"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_unpack() {
|
||||
|
||||
# prepare entropy stuff
|
||||
subversion_src_unpack
|
||||
|
||||
# prepare sqlite stuff
|
||||
cd ${WORKDIR}
|
||||
distutils_src_unpack
|
||||
cd ${WORKDIR}/${PYSQLITE_DIRNAME}-${PYSQLITE_VER}
|
||||
sed -i -e 's/, "pysqlite2.test"//' \
|
||||
setup.py || die "sed in setup.py failed"
|
||||
# workaround to make checks work without installing them
|
||||
sed -i -e "s/pysqlite2.test/test/" \
|
||||
pysqlite2/test/__init__.py || die "sed failed"
|
||||
# correct encoding
|
||||
sed -i -e "s/\(coding: \)ISO-8859-1/\1utf-8/" \
|
||||
pysqlite2/__init__.py pysqlite2/dbapi2.py || die "sed failed"
|
||||
|
||||
# setting svn revision
|
||||
#cd ${ESVN_STORE_DIR}/${PN}/trunk
|
||||
#SVNREV=$(svnversion)
|
||||
echo "${PV}" > ${S}/libraries/revision
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
einfo "nothing to compile"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
##########
|
||||
#
|
||||
# Entropy
|
||||
#
|
||||
#########
|
||||
|
||||
dodir /usr/$(get_libdir)/entropy/libraries
|
||||
dodir /usr/$(get_libdir)/entropy/client
|
||||
dodir /usr/$(get_libdir)/entropy/server
|
||||
|
||||
# copying libraries
|
||||
cd ${S}/libraries
|
||||
insinto /usr/$(get_libdir)/entropy/libraries
|
||||
doins *.py
|
||||
doins revision
|
||||
|
||||
# copy client
|
||||
cd ${S}/client
|
||||
insinto /usr/$(get_libdir)/entropy/client
|
||||
doins *.py
|
||||
exeinto /usr/$(get_libdir)/entropy/client
|
||||
doexe equo
|
||||
|
||||
# copy server
|
||||
cd ${S}/server
|
||||
exeinto /usr/$(get_libdir)/entropy/server
|
||||
doexe reagent
|
||||
doexe activator
|
||||
|
||||
cd ${S}
|
||||
dodir /usr/bin
|
||||
echo '#!/bin/sh' > equo
|
||||
echo 'cd /usr/'$(get_libdir)'/entropy/client' >> equo
|
||||
echo 'LD_LIBRARY_PATH="/usr/'$(get_libdir)'/entropy/client/lib/:/usr/'$(get_libdir)'/entropy/client/libraries/pysqlite2/" python equo "$@"' >> equo
|
||||
exeinto /usr/bin
|
||||
doexe equo
|
||||
|
||||
cd ${S}
|
||||
dodir /usr/bin
|
||||
echo '#!/bin/sh' > reagent
|
||||
echo 'cd /usr/'$(get_libdir)'/entropy/server' >> reagent
|
||||
echo 'LD_LIBRARY_PATH="/usr/'$(get_libdir)'/entropy/server/lib/:/usr/'$(get_libdir)'/entropy/client/libraries/pysqlite2/" python reagent "$@"' >> reagent
|
||||
exeinto /usr/bin
|
||||
doexe reagent
|
||||
|
||||
cd ${S}
|
||||
dodir /usr/bin
|
||||
echo '#!/bin/sh' > activator
|
||||
echo 'cd /usr/'$(get_libdir)'/entropy/server' >> activator
|
||||
echo 'LD_LIBRARY_PATH="/usr/'$(get_libdir)'/entropy/server/lib/:/usr/'$(get_libdir)'/entropy/client/libraries/pysqlite2/" python activator "$@"' >> activator
|
||||
exeinto /usr/bin
|
||||
doexe activator
|
||||
|
||||
# copy configuration
|
||||
cd ${S}/conf
|
||||
dodir /etc/entropy
|
||||
insinto /etc/entropy
|
||||
doins -r *
|
||||
|
||||
#########
|
||||
#
|
||||
# PySQLite
|
||||
#
|
||||
#########
|
||||
|
||||
cd ${WORKDIR}/${PYSQLITE_DIRNAME}-${PYSQLITE_VER}
|
||||
distutils_src_install
|
||||
rm -rf "${D}"/usr/pysqlite2-doc
|
||||
rm -rf "${D}"/usr/share/doc
|
||||
|
||||
########
|
||||
#
|
||||
# Python
|
||||
#
|
||||
########
|
||||
|
||||
python_version
|
||||
mkdir "${D}"/usr/$(get_libdir)/entropy/libraries/pysqlite2
|
||||
mv "${D}"/usr/$(get_libdir)/python${PYVER}/site-packages/${PYTHON_MODNAME}/* "${D}"/usr/$(get_libdir)/entropy/libraries/pysqlite2/ || die "cannot move pysqlite library"
|
||||
rm -rf "${D}"/usr/$(get_libdir)/python${PYVER}
|
||||
if use amd64; then
|
||||
cp ${S}/libraries/python/amd64/libpython* "${D}"/usr/$(get_libdir)/entropy/libraries/pysqlite2/
|
||||
else
|
||||
cp ${S}/libraries/python/x86/libpython* "${D}"/usr/$(get_libdir)/entropy/libraries/pysqlite2/
|
||||
fi
|
||||
chmod 555 "${D}"/usr/$(get_libdir)/entropy/libraries/pysqlite2/libpython*
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
MD5 b4a185e936848370fcc1a5b17755b641 pysqlite-2.3.5.tar.gz 85198
|
||||
RMD160 ee9064b73f0ffc90bdf586b4534bd8c48bf4b440 pysqlite-2.3.5.tar.gz 85198
|
||||
SHA256 074e88e14762cf25684658fbc893eb9f55cf4b9889b71f8aeee6e8992d3f33fe pysqlite-2.3.5.tar.gz 85198
|
||||
Reference in New Issue
Block a user