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.
41 lines
1.3 KiB
41 lines
1.3 KiB
# Copyright 1999-2009 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/app-dicts/babytrans-en2ger/babytrans-en2ger-0.2.ebuild,v 1.7 2009/10/17 22:43:25 halcy0n Exp $
|
|
|
|
MY_P="EngtoGer.dic.gz"
|
|
MY_F="Engtoger.dic"
|
|
DESCRIPTION="English to German dictionary for Babytrans"
|
|
HOMEPAGE="ftp://ftp.ac-grenoble.fr/ge/languages/babylon_dict/"
|
|
SRC_URI="ftp://ftp.ac-grenoble.fr/ge/languages/babylon_dict/${MY_P}"
|
|
|
|
LICENSE="Babylon"
|
|
SLOT="0"
|
|
KEYWORDS="~x86 ~amd64 ~ppc"
|
|
IUSE=""
|
|
|
|
RDEPEND="app-dicts/babytrans"
|
|
RESTRICT="fetch"
|
|
|
|
pkg_nofetch() {
|
|
einfo "Due to license restrictions that may apply to the file in"
|
|
einfo "this package, it has fetch restrictions turned on. This"
|
|
einfo "means that you must download ${MY_P} file manually from"
|
|
einfo "${HOMEPAGE} or copy it"
|
|
einfo "from a windows installation of babylon and put it in "
|
|
einfo "${DISTDIR}. Finally note that having a license of"
|
|
einfo "babylon is desired in order to use this package"
|
|
}
|
|
|
|
src_unpack() {
|
|
local MY_A
|
|
unpack ${A} || die "Unable to unpack file ${A}"
|
|
MY_A="EngtoGer.dic"
|
|
mv ${MY_A} ${MY_F} || die "Unable to rename file ${MY_A}"
|
|
}
|
|
|
|
src_install() {
|
|
cd "${WORKDIR}"
|
|
insinto /usr/share/babytrans
|
|
doins ${MY_F} || die "Unable to install file ${MY_F}"
|
|
}
|