You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-overlay/app-misc/gcstar/gcstar-1.4.3-r1.ebuild

83 lines
1.8 KiB

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# Nonofficial ebuild by Ycarus. For new version look here : http://gentoo.zugaina.org/
# Update of gcstar ebuild from sunrise overlay
inherit eutils
DESCRIPTION="Collections management."
HOMEPAGE="http://www.gcstar.org/"
SRC_URI="http://download.gna.org/gcstar/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="mp3 spell tellico vorbis"
LANGS="ar bg ca cs de es fr id it pl pt ro ru sr sv tr"
for x in ${LANGS} ; do
IUSE="${IUSE} linguas_${x}"
done
DEPEND="dev-lang/perl
perl-core/Archive-Tar
dev-perl/Archive-Zip
dev-perl/gtk2-perl
dev-perl/HTML-Parser
dev-perl/libwww-perl
dev-perl/URI
dev-perl/XML-LibXML
dev-perl/XML-Parser
dev-perl/XML-Simple
perl-core/Compress-Zlib
perl-core/Time-Piece
virtual/perl-File-Spec
virtual/perl-File-Temp
virtual/perl-libnet
mp3? ( dev-perl/MP3-Info dev-perl/MP3-Tag )
spell? ( dev-perl/gtk2-spell )
tellico? ( dev-perl/Archive-Zip
virtual/perl-Digest-MD5
virtual/perl-MIME-Base64 )
vorbis? ( dev-perl/Ogg-Vorbis-Header-PurePerl )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}"
src_install() {
cd "${S}"/lib/gcstar/GCLang
mkdir tmp
mv ?? tmp
# English version should be always available so we will keep it
mv tmp/EN .
for x in ${LANGS}; do
# GCstar uses upper-case language names
if use linguas_${x} ; then
mv tmp/$(echo ${x} | tr '[:lower:]' '[:upper:]') .
fi
done
rm -rf tmp
cd "${S}"
# otherwise man pages would get installed in /usr/man
mv man share
./install --prefix="${D}/usr" \
--noclean --nomenu || die "install script failed"
domenu share/applications/gcstar.desktop
newicon share/gcstar/icons/gcstar_64x64.png gcstar.png
dodoc CHANGELOG README
if use linguas_fr; then
dodoc CHANGELOG.fr README.fr
fi
doman share/man/gcstar.1
}