Files
for-gentoo/sys-apps/entropy/entropy-0.50.2.ebuild
T
lxnay fce7038a35 entropy 0.50.2 ebuilds
git-svn-id: http://svn.sabayonlinux.org/overlay@2759 d7aec97c-591d-0410-af39-a8856400b30a
2009-02-02 13:41:32 +00:00

81 lines
1.5 KiB
Bash

# Copyright 2004-2007 Sabayon Linux
# Distributed under the terms of the GNU General Public License v2
EAPI=1
inherit eutils subversion multilib
ESVN_REPO_URI="http://svn.sabayonlinux.org/projects/entropy/tags/${PV}"
DESCRIPTION="Official Sabayon Linux Package Manager library"
HOMEPAGE="http://www.sabayonlinux.org"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
S="${WORKDIR}"/trunk
DEPEND="
sys-devel/gettext
sys-apps/diffutils
>=dev-lang/python-2.5[sqlite]
dev-db/sqlite[soundex]"
RDEPEND="${DEPEND}"
pkg_setup() {
enewgroup entropy || die "failed to create entropy group"
}
src_unpack() {
# prepare entropy stuff
subversion_src_unpack
# setting svn revision
#cd ${ESVN_STORE_DIR}/${PN}/trunk
#SVNREV=$(svnversion)
echo "${PV}" > ${S}/libraries/revision
}
src_compile() {
cd "${S}/misc/po"
emake
}
src_install() {
##########
#
# Entropy
#
#########
dodir /usr/$(get_libdir)/entropy/libraries
dodir /usr/sbin
# copying libraries
cd ${S}/libraries
insinto /usr/$(get_libdir)/entropy/libraries
doins *.py
doins revision
# copy entropy (client) server
cd ${S}/server
exeinto /usr/sbin/
doexe entropy-system-daemon
# copy configuration
cd ${S}/conf
dodir /etc/entropy
insinto /etc/entropy
doins -r *
rm ${D}/etc/entropy/equo.conf
rm ${D}/etc/entropy/reagent.conf
rm ${D}/etc/entropy/activator.conf
rm ${D}/etc/entropy/server.conf.example
doenvd ${S}/misc/05entropy.envd
# install localization
cd "${S}/misc/po"
emake DESTDIR="${D}" install
}