net-proxy/clash-for-windows-bin: Bump to new version, drop old version.
[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