clean cvs header
[gentoo-zh.git] / app-i18n / libpinyin / libpinyin-1.0.0.ebuild
blobb0f00855197b7b16b851a9adaaf9cce6c7d813c3
1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=7
5 inherit autotools eutils
7 DESCRIPTION="Library to deal with Pinyin."
8 HOMEPAGE="https://github.com/libpinyin/libpinyin"
9 SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
10 http://downloads.sourceforge.net/${PN}/model7.text.tar.gz"
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~x86"
15 IUSE=""
16 RESTRICT="mirror"
18 DEPEND=">=sys-libs/db-4
19 dev-libs/glib:2
21 RDEPEND="${DEPEND}"
23 src_prepare() {
24 ln -s "${DISTDIR}/model7.text.tar.gz" "${S}/data" || die "link file error"
25 sed -i '/wget.*model7\.text\.tar\.gz/ d' "${S}/data/Makefile.am"
26 epatch_user
27 eautoreconf