From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9E39C1396D0 for ; Thu, 31 Aug 2017 19:53:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1D0DBE0D82; Thu, 31 Aug 2017 19:53:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EFED5E0D8F for ; Thu, 31 Aug 2017 19:53:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1BBD333FE7D for ; Thu, 31 Aug 2017 19:53:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2E52E896B for ; Thu, 31 Aug 2017 19:53:18 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1504209173.d45554ecec3f75f3387b5bb855a83b2c23fc02a4.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/libpinyin/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-i18n/libpinyin/libpinyin-9999.ebuild X-VCS-Directories: app-i18n/libpinyin/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: d45554ecec3f75f3387b5bb855a83b2c23fc02a4 X-VCS-Branch: master Date: Thu, 31 Aug 2017 19:53:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b3e70eac-71db-4212-90db-db428545fc89 X-Archives-Hash: bf14ae8a5da7640e242b116d85344977 commit: d45554ecec3f75f3387b5bb855a83b2c23fc02a4 Author: Arfrever Frehtes Taifersar Arahesis Apache Org> AuthorDate: Thu Aug 31 18:36:57 2017 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Thu Aug 31 19:52:53 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d45554ec app-i18n/libpinyin: Add live ebuild. app-i18n/libpinyin/libpinyin-9999.ebuild | 61 ++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/app-i18n/libpinyin/libpinyin-9999.ebuild b/app-i18n/libpinyin/libpinyin-9999.ebuild new file mode 100644 index 00000000000..e5df0d1c77a --- /dev/null +++ b/app-i18n/libpinyin/libpinyin-9999.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit autotools + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/libpinyin/libpinyin" +fi + +LIBPINYIN_MODEL_VERSION="14" + +DESCRIPTION="Library to deal with pinyin" +HOMEPAGE="https://github.com/libpinyin/libpinyin https://sourceforge.net/projects/libpinyin/" +if [[ "${PV}" == "9999" ]]; then + SRC_URI="" +else + SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +fi +SRC_URI+=" mirror://sourceforge/${PN}/models/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz -> ${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" + +LICENSE="GPL-3+" +SLOT="0/13" +KEYWORDS="" +IUSE="" + +RDEPEND="dev-libs/glib:2 + sys-libs/db:=" + +DEPEND="${RDEPEND} + virtual/libintl + virtual/pkgconfig" + +src_unpack() { + if [[ "${PV}" == "9999" ]]; then + git-r3_src_unpack + else + unpack ${P}.tar.gz + fi +} + +src_prepare() { + default + + ln -s "${DISTDIR}/${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" "data/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" || die + sed -e "/^\twget .*\/model${LIBPINYIN_MODEL_VERSION}\.text\.tar\.gz$/d" -i data/Makefile.am || die + + eautoreconf +} + +src_configure() { + econf --disable-static +} + +src_install() { + default + find "${D}" -name "*.la" -delete || die +}