summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2013-09-27 15:45:54 +0000
committerDoug Goldstein <cardoe@gentoo.org>2013-09-27 15:45:54 +0000
commite5a94cb8c0f3e626904ebce06fa5f7c927da8760 (patch)
tree737dee7d24fcfb5efbebfd0984541591d733bd93 /dev-util
parentInstall desktop file again (diff)
downloadgentoo-2-e5a94cb8c0f3e626904ebce06fa5f7c927da8760.tar.gz
gentoo-2-e5a94cb8c0f3e626904ebce06fa5f7c927da8760.tar.bz2
gentoo-2-e5a94cb8c0f3e626904ebce06fa5f7c927da8760.zip
Version bump from Jauien Piatlicki <piatlicki@gmail.com> (proxy commit)
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key D7DFA8D318FA9AEF!)
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/android-ndk/ChangeLog8
-rw-r--r--dev-util/android-ndk/android-ndk-9.ebuild71
-rw-r--r--dev-util/android-ndk/metadata.xml5
3 files changed, 82 insertions, 2 deletions
diff --git a/dev-util/android-ndk/ChangeLog b/dev-util/android-ndk/ChangeLog
index 384bd5df2c2a..f1feb427ba8b 100644
--- a/dev-util/android-ndk/ChangeLog
+++ b/dev-util/android-ndk/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-util/android-ndk
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/android-ndk/ChangeLog,v 1.7 2013/07/25 06:33:37 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/android-ndk/ChangeLog,v 1.8 2013/09/27 15:45:54 cardoe Exp $
+
+*android-ndk-9 (27 Sep 2013)
+
+ 27 Sep 2013; Doug Goldstein <cardoe@gentoo.org> +android-ndk-9.ebuild,
+ metadata.xml:
+ Version bump from Jauien Piatlicki <piatlicki@gmail.com> (proxy commit)
25 Jul 2013; Patrick Lauer <patrick@gentoo.org> metadata.xml:
QA: Fixing herd
diff --git a/dev-util/android-ndk/android-ndk-9.ebuild b/dev-util/android-ndk/android-ndk-9.ebuild
new file mode 100644
index 000000000000..4aa79ffa6106
--- /dev/null
+++ b/dev-util/android-ndk/android-ndk-9.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/android-ndk/android-ndk-9.ebuild,v 1.1 2013/09/27 15:45:54 cardoe Exp $
+
+EAPI=5
+
+MY_P="${PN}-r${PV}"
+
+DESCRIPTION="Open Handset Alliance's Android NDK (Native Dev Kit)"
+HOMEPAGE="http://developer.android.com/sdk/ndk/"
+SRC_URI="x86? ( http://dl.google.com/android/ndk/${MY_P}-linux-x86.tar.bz2
+ legacy-toolchains? ( http://dl.google.com/android/ndk/${MY_P}-linux-x86-legacy-toolchains.tar.bz2 ) )
+ amd64? ( http://dl.google.com/android/ndk/${MY_P}-linux-x86_64.tar.bz2
+ legacy-toolchains? ( http://dl.google.com/android/ndk/${MY_P}-linux-x86_64-legacy-toolchains.tar.bz2 ) )"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="legacy-toolchains"
+RESTRICT="mirror strip installsources test"
+
+DEPEND=""
+RDEPEND=">=dev-util/android-sdk-update-manager-10
+ >=sys-devel/make-3.81"
+
+S="${WORKDIR}/${MY_P}"
+
+ANDROID_NDK_DIR="opt/${PN}"
+
+QA_PREBUILT="*"
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir "/${ANDROID_NDK_DIR}"
+ cp -pPR * "${ED}/${ANDROID_NDK_DIR}" || die
+
+ fowners -R root:android "/${ANDROID_NDK_DIR}"
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{,build,docs,platforms,samples}
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{sources,tests,toolchains}
+
+ dodir "/${ANDROID_NDK_DIR}/out"
+ fowners root:android "/${ANDROID_NDK_DIR}/out"
+ fperms 3775 "/${ANDROID_NDK_DIR}/out"
+
+ ANDROID_PREFIX="${EPREFIX}/${ANDROID_NDK_DIR}"
+ ANDROID_PATH="${EPREFIX}/${ANDROID_NDK_DIR}"
+
+ for i in toolchains/*/prebuilt/linux-*/bin
+ do
+ ANDROID_PATH="${ANDROID_PATH}:${ANDROID_PREFIX}/${i}"
+ done
+
+ printf '%s' \
+ "PATH=\"${ANDROID_PATH}\"" \
+ $'\n' \
+ > "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}/${ANDROID_NDK_DIR}\"" \
+ > "${T}/80${PN}" || die
+ insinto "/etc/revdep-rebuild"
+ doins "${T}/80${PN}"
+}
diff --git a/dev-util/android-ndk/metadata.xml b/dev-util/android-ndk/metadata.xml
index 6fc97440ea53..b83cc65a8a5c 100644
--- a/dev-util/android-ndk/metadata.xml
+++ b/dev-util/android-ndk/metadata.xml
@@ -13,5 +13,8 @@
<name>Jauhien Piatlicki</name>
<description>Proxy maintainer</description>
</maintainer>
-</pkgmetadata>
+ <use>
+ <flag name="legacy-toolchains">Install legacy toolchains</flag>
+ </use>
+</pkgmetadata>