From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9F89113829C for ; Wed, 1 Jun 2016 13:08:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB92A234012; Wed, 1 Jun 2016 13:08:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 49B77234012 for ; Wed, 1 Jun 2016 13:08:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D0A43340C54 for ; Wed, 1 Jun 2016 13:08:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CB313975 for ; Wed, 1 Jun 2016 13:08:35 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1464786277.b7a445ba532d4c55b8154ba3cbfb83d405c69207.perfinion@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/android-ndk/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/android-ndk/android-ndk-11c-r1.ebuild X-VCS-Directories: dev-util/android-ndk/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: b7a445ba532d4c55b8154ba3cbfb83d405c69207 X-VCS-Branch: master Date: Wed, 1 Jun 2016 13:08:35 +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: 8002dc36-3bb8-4f02-b9d8-41f1e2912150 X-Archives-Hash: 0b9a318d3c1c24449a8066c4fee6be88 commit: b7a445ba532d4c55b8154ba3cbfb83d405c69207 Author: Jason Zaman gentoo org> AuthorDate: Wed Jun 1 13:04:37 2016 +0000 Commit: Jason Zaman gentoo org> CommitDate: Wed Jun 1 13:04:37 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7a445ba dev-util/android-ndk: needs dep ncurses[tinfo] bug 583858 Package-Manager: portage-2.2.28 dev-util/android-ndk/android-ndk-11c-r1.ebuild | 80 ++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/dev-util/android-ndk/android-ndk-11c-r1.ebuild b/dev-util/android-ndk/android-ndk-11c-r1.ebuild new file mode 100644 index 0000000..add201b --- /dev/null +++ b/dev-util/android-ndk/android-ndk-11c-r1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +CHECKREQS_DISK_BUILD="6G" +inherit check-reqs + +DESCRIPTION="Open Handset Alliance's Android NDK (Native Dev Kit)" +HOMEPAGE="http://developer.android.com/sdk/ndk/" +SRC_URI="https://dl.google.com/android/repository/${PN}-r${PV}-linux-x86_64.zip" + +LICENSE="android" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" +RESTRICT="mirror strip installsources test" + +DEPEND="app-arch/p7zip" +RDEPEND=">=dev-util/android-sdk-update-manager-10 + >=sys-devel/make-3.81 + || ( + sys-libs/ncurses:0/5[tinfo] + sys-libs/ncurses:5/5[tinfo] + )" + +S="${WORKDIR}/${PN}-r${PV}" + +ANDROID_NDK_DIR="opt/${PN}" + +QA_PREBUILT="*" +PYTHON_UPDATER_IGNORE="1" + +pkg_pretend() { + check-reqs_pkg_pretend +} + +pkg_setup() { + check-reqs_pkg_setup +} + +src_configure() { + : +} + +src_compile() { + : +} + +src_install() { + dodir "/${ANDROID_NDK_DIR}" + cp -pPR * "${ED}/${ANDROID_NDK_DIR}" || die + + dodir "/${ANDROID_NDK_DIR}/out" + fowners -R root:android "/${ANDROID_NDK_DIR}" + fperms 0775 "/${ANDROID_NDK_DIR}/"{,build,platforms,prebuilt} + fperms 0775 "/${ANDROID_NDK_DIR}/"{python-packages,sources,toolchains} + 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}" +}