app-i18n/fcitx-skk: add 5.0.13, drop 5.0.12
[gentoo-zh.git] / eclass / googlecode.eclass
blob6f577d911246a198991503e2e427e0ee2382a4fc
1 # Copyright 2011 microcai
2 # Distributed under the terms of the GNU General Public License v2
5 # @ECLASS: googlecode.eclass
6 # @MAINTAINER: microcai
7 # microcaicai@gentoo.org
8 # @BLURB:
9 # @DESCRIPTION:
10 # Exports portage base functions used by ebuilds written for packages hosting on google code.
12 inherit eutils autotools
14 if [ "$HOMEPAGE" = "" ]; then
15 HOMEPAGE="http://${PN}.googlecode.com"
18 if [ "${PV##*.}" = "9999" ]; then
19 inherit subversion
20 ESVN_REPO_URI="${HOMEPAGE}/svn/trunk/"
21 else
22 if [ "${TAR_SUFFIX}" = "" ] ; then
23 SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.bz2"
24 else
25 SRC_URI="http://${PN}.googlecode.com/files/${P}.${TAR_SUFFIX}"
29 case "${EAPI:-0}" in
30 4|5|6|7)
31 EXPORT_FUNCTIONS src_install
33 *) die "EAPI=${EAPI} is not supported" ;;
34 esac
36 googlecode_src_install(){
37 emake install DESTDIR=${D} || die