diff options
author | 2013-12-26 22:34:55 +0100 | |
---|---|---|
committer | 2013-12-26 22:34:55 +0100 | |
commit | c8d5f7d5490cef5e01126b90fb7e1d9537ac6934 (patch) | |
tree | 47962d71d7fe179df87c46dab5e6b914a2906b6b | |
parent | push pyCardDAV & libwebsockets (diff) | |
download | andy-c8d5f7d5490cef5e01126b90fb7e1d9537ac6934.tar.gz andy-c8d5f7d5490cef5e01126b90fb7e1d9537ac6934.tar.bz2 andy-c8d5f7d5490cef5e01126b90fb7e1d9537ac6934.zip |
add gradle-bin
-rw-r--r-- | app-admin/eselect-gradle/Manifest | 2 | ||||
-rw-r--r-- | app-admin/eselect-gradle/eselect-gradle-0.1.ebuild | 24 | ||||
-rw-r--r-- | app-admin/eselect-gradle/files/gradle.eselect | 131 | ||||
-rw-r--r-- | app-misc/khal/Manifest | 2 | ||||
-rw-r--r-- | app-misc/khal/khal-9999.ebuild | 4 | ||||
-rw-r--r-- | dev-java/gradle-bin/Manifest | 2 | ||||
-rw-r--r-- | dev-java/gradle-bin/gradle-bin-1.9.ebuild | 76 |
7 files changed, 238 insertions, 3 deletions
diff --git a/app-admin/eselect-gradle/Manifest b/app-admin/eselect-gradle/Manifest new file mode 100644 index 0000000..f56ef7d --- /dev/null +++ b/app-admin/eselect-gradle/Manifest @@ -0,0 +1,2 @@ +AUX gradle.eselect 3077 SHA256 75c434f77079b1cfea0a61a815a6e9dcaa84dbf10ca50415e34b2addc048aab7 SHA512 e475a7447a8d7918617e558347493c235a94fda56055c056f1f5a490865c4be1ffc2c427bf3852e00a3122a9be40fcb3633147a47e552d1c10b45231f39cf2e2 WHIRLPOOL 7a1d6184a4596895070e821ba323b7bca9a63df993be9ada206981790f47cffc301a56157a8110736889a3564dd3a1e9e350db57bca21f62e3a510ed80496054 +EBUILD eselect-gradle-0.1.ebuild 408 SHA256 2542f759da7f39dec5255519bbfa75ddb928c09e8ff0b646a28c793f60acee18 SHA512 fd75fd78e919cbab1b1c70e61f1789c89d40df573df284268d5755d64f1687f1018ab7075f5fc2ff0c662199f6f5d5d8fe41452bca26c1cbc238c720dd70e21d WHIRLPOOL 4b1313c64af96c772bf764b2b06daad2b5d3f38db58b73b835c4de8db95b062aa9921652e5f2c3814ad7dd0c9d8258075a7ea684bd28e3757f0233b5d77ae86c diff --git a/app-admin/eselect-gradle/eselect-gradle-0.1.ebuild b/app-admin/eselect-gradle/eselect-gradle-0.1.ebuild new file mode 100644 index 0000000..7920cdd --- /dev/null +++ b/app-admin/eselect-gradle/eselect-gradle-0.1.ebuild @@ -0,0 +1,24 @@ +# Copyright 2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +DESCRIPTION="Manage multiple Gradle versions on one system" +HOMEPAGE="" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="app-admin/eselect" + +S="${WORKDIR}" + +src_install() { + insinto /usr/share/eselect/modules + doins ${FILESDIR}/gradle.eselect +} diff --git a/app-admin/eselect-gradle/files/gradle.eselect b/app-admin/eselect-gradle/files/gradle.eselect new file mode 100644 index 0000000..853143e --- /dev/null +++ b/app-admin/eselect-gradle/files/gradle.eselect @@ -0,0 +1,131 @@ +# -*-eselect-*- vim: ft=eselect +# Copyright 2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 or later +# $Id: $ + +DESCRIPTION="Manage the /usr/bin/gradle symlink" +MAINTAINER="" +VERSION=0.1 + +# find a list of gradle symlink targets +find_targets() { + local f + for f in "${EROOT}"/usr/bin/gradle?(-bin)-[[:digit:]]*; do + [[ -x ${f} ]] && basename "${f}" + done +} + +remove_symlink() { + rm "${EROOT}/usr/bin/gradle" \ + || die -q "Could not remove symlink" +} + +set_symlink() { + local target=$1 + + if is_number "${target}"; then + local targets=( $(find_targets) ) + target=${targets[target-1]} + fi + + [[ -z ${target} ]] \ + && die -q "Target \"${1}\" doesn't apper to be valid!" + + [[ ! -x ${EROOT}/usr/bin/${target} ]] \ + && die -q "${EROOT}/usr/bin/${target} is not an executable" + + ln -s "${target}" "${EROOT}/usr/bin/gradle" \ + || die -q "Could not set symlink" +} + +describe_show() { + echo "Shows the current gradle symlink" +} + +do_show() { + write_list_start "Current gradle symlink:" + if [[ -L ${EROOT}/usr/bin/gradle ]]; then + local gradle=$(cannonicalise "${EROOT}/usr/bin/gradle") + write_kv_list_entry "${gradle}" "" + else + write_kv_list_entry "(unset)" "" + fi +} + +describe_list() { + echo "list available gradle symlink targets" +} + +do_list() { + local i targets=( $(find_targets) ) + + write_list_start "Available gradle symlink targets:" + for (( i = 0; i < ${#targets[@]}; i++ )); do + # highligh the target where the symlink is pointing to + [[ ${targets[i]} = \ + $(basename "$(canonicalise "${EROOT}/usr/bin/gradle")") ]] \ + && targets[i]=$(highlight_marker "${targets[i]}") + done + write_numbered_list -m "(none found)" "${targets[@]}" +} + +describe_set() { + echo "Set a new gradle symlink target" +} + +describe_set_parameters() { + echo "<target>" +} + +describe_set_options() { + echo "target : Target name or number (from 'list' action)" +} + +do_set() { + [[ -z $1 ]] && die -q "You didn't tell me what to set the symlink to" + [[ $# -gt 1 ]] && die -q "Too many parameters" + test_for_root + + if [[ -L ${EROOT}/usr/bin/gradle ]]; then + # existing symmlink + remove_symlink + set_symlink "$1" + elif [[ -e ${EROOT}/usr/bin/gradle ]]; then + # we have someting strange + die -q "${EROOT}/usr/bin/gradle exists but is not a symlink" + else + set_symlink "$1" + fi +} + +describe_update() { + echo "Automatically update the gradle symlink" +} + +describe_update_options() { + echo "ifunset: Do not override currently set version" +} + +do_update() { + [[ -z $1 || $1 == ifunset ]] || die -q "Usage error" + [[ $# -gt 1 ]] && die -q "Too many parameters" + test_for_root + + if [[ -L ${EROOT}/usr/bin/gradle ]]; then + if [[ $1 == ifunset && -e ${EROOT}/usr/bin/gradle ]]; then + return + fi + remove_symlink + elif [[ -e ${EROOT}/usr/bin/gradle ]]; then + die -q "${EROOT}/usr/bin/gradle exists but is not a symlink" + fi + + local targets=( $(find_targets) ) + if [[ ${#targets[@]} -gt 0 ]]; then + set_symlink "${targets[${#targets[@]}-1]}" + fi +} + +test_for_root() { + [[ -w ${EROOT}/usr/bin ]] || die -q "${EROOT}/usr/bin not writeable by current user. Are you root?" +} diff --git a/app-misc/khal/Manifest b/app-misc/khal/Manifest index 294d6bb..dbb78ac 100644 --- a/app-misc/khal/Manifest +++ b/app-misc/khal/Manifest @@ -1,2 +1,2 @@ -EBUILD khal-9999.ebuild 895 SHA256 a65612884d94c32f951fd735937779ffc1c5630e1ebc9482ab36c2ee40be9121 SHA512 21dd7e141f1958760c132305b5cf9470ec080612f414d152711f5f603b50b27c3230aa1406ced8356205dc043c57c3ebdbc1b89689373f6ffb90b4a3fb51db08 WHIRLPOOL 928ed5359fa3a8b8659bf492f86a019fdca9bee0ffebbe0ce3eed2c795aa46f5dc622d654adf2d94bae91daf24d627a331ebf47ea71b33ab07e0521d4a21c1aa +EBUILD khal-9999.ebuild 909 SHA256 5fdfc12aba044add88360ac2375fb9037a9c1b1ec7679d53824e2f26965ff29a SHA512 676bb894a281e89ffe501774d0c26ef07dee65e12e18e01fa12339ee5da1dc385d1c9302f44484fd81e6d4a244ce347e0d6cc299f317996ce05709d86be6c145 WHIRLPOOL 0a3db56a25aee8346183e64364bdd0439615d8d93f2fbb4742fc2a2109aefe4eaf01bc13b0e1ca96c8ef690dcaae4c5ec494c477fe8e0dddbf1e244a49367df9 MISC ChangeLog 249 SHA256 e556df1d5a8c2ee8e98ba86096a67b971af66a62f7b8a30acd4647c5f1f0c83f SHA512 3524ee490a62236d0156e3858a7991b63ef28986df8a8c905e5b3adb9bd5681f2c9fe4ee6487d3d1c6642ab91ed1a2bfca512019cf8c092c753c2937c3cccaa1 WHIRLPOOL 1db26af6fdb50f07d31e25d82e2cb4428e2b8809b7f3577f9b43eb88a5bc5f96603f8d0f674d2f1a9bb2fe0e1be9f46d684cae7ea7bd5edd5b8d01d1e497faa5 diff --git a/app-misc/khal/khal-9999.ebuild b/app-misc/khal/khal-9999.ebuild index a46ae4f..645b5d9 100644 --- a/app-misc/khal/khal-9999.ebuild +++ b/app-misc/khal/khal-9999.ebuild @@ -21,9 +21,9 @@ IUSE="" DEPEND="dev-python/lxml dev-python/requests - dev-python/urwid + >=dev-python/urwid-1.1.0 dev-python/pyxdg - dev-python/icalendar + >=dev-python/icalendar-3.1 virtual/python-argparse[${PYTHON_USEDEP}]" RDEPEND="${DEPEND}" diff --git a/dev-java/gradle-bin/Manifest b/dev-java/gradle-bin/Manifest new file mode 100644 index 0000000..9815fe6 --- /dev/null +++ b/dev-java/gradle-bin/Manifest @@ -0,0 +1,2 @@ +DIST gradle-1.9-all.zip 54348845 SHA256 eeb919fe734bc4a63aaf75c05c19bc55c8bccc925b0eca4269c67f7e8cf48efb SHA512 b34f0c3d11297784532044b73074d96c4309ae382d919ce6504cb2c238fe4709a5d73958de110ea70e529fb9141d8abb00964a293f556b081dd72a58bb0734f9 WHIRLPOOL ddb868d4f97cb965322ec234b652f8322a75a5ca319728c016caa07b69845309b683c2fdbf856663ed74a7973700bcb48cbbd2c3b9ebc412eabdd2af47579b7d +EBUILD gradle-bin-1.9.ebuild 1412 SHA256 1f1ed99ae02e60c0d036f51d6f23527dd41fdc2371c27311cca99260219aaad7 SHA512 aefde2f6e8c6177ef2cd4d637b7860e57d22037e4ea8f8bf03863aef3a43e23512d536492a97c62e3081fdc00f8d8a30479f941293c06af6bafaaf9c175b20f1 WHIRLPOOL e81ea218f4d1f2ff264ddc4aac8c0134ac16d00b07fda64a24f27b3fcd23c0b8de0f2b97697236d64b52284d4785a78d4d3aeffc9e54c4c7fab74990fddb256b diff --git a/dev-java/gradle-bin/gradle-bin-1.9.ebuild b/dev-java/gradle-bin/gradle-bin-1.9.ebuild new file mode 100644 index 0000000..d8da5e8 --- /dev/null +++ b/dev-java/gradle-bin/gradle-bin-1.9.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit java-pkg-2 + +MY_PN=${PN%%-bin} +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A project automation and build tool similar to Apache Ant and Apache Maven with a Groovy based DSL" +SRC_URI="http://services.gradle.org/distributions/${MY_P}-all.zip" +HOMEPAGE="http://www.gradle.org/" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~x86 ~amd64" + +DEPEND="app-arch/zip + app-admin/eselect-gradle" +RDEPEND=">=virtual/jdk-1.5" + +IUSE="source doc examples" + +S="${WORKDIR}/${MY_P}" + + +src_unpack() { + unpack ${A} +} + + +src_install() { + local gradle_dir="${EROOT}usr/share/${P}/" + + dodoc changelog.txt getting-started.html + + insinto "${gradle_dir}" + + # source + if use source ; then + java-pkg_dosrc src/* + fi + + # docs + if use doc ; then + java-pkg_dojavadoc docs + fi + + # examples + if use examples ; then + java-pkg_doexamples samples + fi + + # jars in lib/ + cd lib || die "lib/ not found" + for jar in *.jar; do + java-pkg_newjar ${jar} ${jar} + done + + # plugins in lib/plugins + cd plugins + java-pkg_jarinto ${JAVA_PKG_JARDEST}/plugins + for jar in *.jar; do + java-pkg_newjar ${jar} ${jar} + done + + java-pkg_dolauncher "${P}" --main org.gradle.launcher.GradleMain --java_args "-Dgradle.home=${gradle_dir}/lib \${GRADLE_OPTS}" +} + +pkg_postinst() { + eselect gradle update ifunset +} + +pkg_postrm() { + eselect gradle update ifunset +} |