diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2013-07-01 00:19:58 +0200 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2013-07-01 00:19:58 +0200 |
commit | 01d8db6604f64935b9cc856400081d23e69dc08d (patch) | |
tree | fede376c142b8fff7a65b162cd7c92bc1ba92c8d /app-mobilephone | |
parent | games-action/hotline-miami-bin: 1.0.9a (diff) | |
download | betagarden-01d8db6604f64935b9cc856400081d23e69dc08d.tar.gz betagarden-01d8db6604f64935b9cc856400081d23e69dc08d.tar.bz2 betagarden-01d8db6604f64935b9cc856400081d23e69dc08d.zip |
app-mobilephone/textsecure-apk: 0.9.9.6
Diffstat (limited to 'app-mobilephone')
-rw-r--r-- | app-mobilephone/textsecure-apk/Manifest | 2 | ||||
-rw-r--r-- | app-mobilephone/textsecure-apk/metadata.xml | 8 | ||||
-rw-r--r-- | app-mobilephone/textsecure-apk/textsecure-apk-0.9.9.6.ebuild | 76 |
3 files changed, 86 insertions, 0 deletions
diff --git a/app-mobilephone/textsecure-apk/Manifest b/app-mobilephone/textsecure-apk/Manifest new file mode 100644 index 0000000..270c0a5 --- /dev/null +++ b/app-mobilephone/textsecure-apk/Manifest @@ -0,0 +1,2 @@ +DIST ActionBarSherlock-4.2.0.tar.gz 5098370 SHA256 96ab19e1d454f24a74043896530428b15d24257b97817e0b271dc943ddbc82a9 SHA512 4a55dff826f2c48d5579f0352344dc5e693a7781b26eea51e0f07b49be8cfd4eee2764a3466165b76c0631397212d2820517a4f1d697d70da6be3d0a2498a8ea WHIRLPOOL 681ab212039c7abeea27b79bc3b88397e430029bc4d448414cd206166d1a30f314ec4550d3bb9e698e5a425924bde3c31624077a46ba7678fe700d0201e1aebc +DIST TextSecure-0.9.9.6.tar.gz 1478747 SHA256 e8591b00593540a1d37e64322539658ed31e2a290ec707b99fa0ee79f84a531a SHA512 d48ca63720bf54aec6c0d4915b626bed9640f9f4f57dd75c59389093f1cb3125d6b9127486b05b28868728174540c672e9bc508cd057bc76eb8f55731223ac81 WHIRLPOOL a5aa639b700628f2fee7f705319a7c59c89ea2a121e85caa9eab0ef08d6f06bae8837e10f32b6143b3848745add49271f2c7d6e6738b5b49ef563d18f121b755 diff --git a/app-mobilephone/textsecure-apk/metadata.xml b/app-mobilephone/textsecure-apk/metadata.xml new file mode 100644 index 0000000..16bcc9f --- /dev/null +++ b/app-mobilephone/textsecure-apk/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>sping@gentoo.org</email> + <name>Sebastian Pipping</name> + </maintainer> +</pkgmetadata> diff --git a/app-mobilephone/textsecure-apk/textsecure-apk-0.9.9.6.ebuild b/app-mobilephone/textsecure-apk/textsecure-apk-0.9.9.6.ebuild new file mode 100644 index 0000000..38e97af --- /dev/null +++ b/app-mobilephone/textsecure-apk/textsecure-apk-0.9.9.6.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit java-pkg-2 java-ant-2 + +ABS_PN=ActionBarSherlock +ABS_PV=4.2.0 +ABS_P=${ABS_PN}-${ABS_PV} + +MY_PN=TextSecure +MY_P=${MY_PN}-${PV} +DESCRIPTION="A secure text messaging application for Android." +HOMEPAGE=https://github.com/WhisperSystems/TextSecure +SRC_URI="https://github.com/WhisperSystems/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz + https://github.com/JakeWharton/${ABS_PN}/archive/${ABS_PV}.tar.gz -> ${ABS_P}.tar.gz" + +LICENSE="GPL-3 Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/jdk-1.7 + dev-util/android-sdk-update-manager" +RDEPEND=">=virtual/jre-1.7" + +S=${WORKDIR} +PROPERTIES=interactive + +ANDROID_TARGET=android-15 + +android() { + /opt/android-sdk-update-manager/tools/android "$@" +} + +pkg_setup() { + # Super-dirty. We could prepend "echo y | " but we would be accepting a version + # for the user then (that might have changed upstream in the mean time). + android update sdk -u --filter platform-tools,${ANDROID_TARGET},extra-android-support,build-tools-17.0.0 +} + +src_prepare() { + rm -R ${ABS_P}/samples || die + + find -type f -name android-support-v4.jar | while read dest ; do + rm "${dest}" || die + ln -s /opt/android-sdk-update-manager/extras/android/support/v4/android-support-v4.jar "${dest}" || die + done + + ewarn 'These .jar files might still need to be unbundled:' + ewarn "$(find -type f -name '*.jar' | sort)" +} + +src_configure() { + # NOTE: --library needs a relative path + android update project --path "${WORKDIR}"/${ABS_P}/library --target ${ANDROID_TARGET} + android update project --path "${WORKDIR}"/${MY_P} --target ${ANDROID_TARGET} --library ../${ABS_P}/library +} + +src_compile() { + # Dirty sandbox workaround to make keytool work + local actual_home="$(sh -c "echo ~$(id -n -u)")" + addwrite "${actual_home}"/.android + addread "${actual_home}"/.android + + cd "${MY_P}" || die + eant debug +} + +src_install() { + insinto /usr/share/${MY_PN,,}-${PV} + doins "${MY_P}"/bin/${MY_PN}-debug.apk + doins "${MY_P}"/bin/${MY_PN}-debug-unaligned.apk +} |