From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1E197138330 for ; Sun, 9 Oct 2016 03:37:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6EABAE0B76; Sun, 9 Oct 2016 03:37:14 +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 41D35E0B76 for ; Sun, 9 Oct 2016 03:37:14 +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 00AC13415E9 for ; Sun, 9 Oct 2016 03:37:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6F0C724A9 for ; Sun, 9 Oct 2016 03:37:10 +0000 (UTC) From: "Benda XU" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Benda XU" Message-ID: <1475984188.f278d016c128d71ac8538c67a86bc015b00b1b07.heroxbd@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/java-ebuilder/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-portage/java-ebuilder/Manifest app-portage/java-ebuilder/java-ebuilder-0.1.ebuild app-portage/java-ebuilder/java-ebuilder-9999.ebuild app-portage/java-ebuilder/metadata.xml X-VCS-Directories: app-portage/java-ebuilder/ X-VCS-Committer: heroxbd X-VCS-Committer-Name: Benda XU X-VCS-Revision: f278d016c128d71ac8538c67a86bc015b00b1b07 X-VCS-Branch: master Date: Sun, 9 Oct 2016 03:37:10 +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: 1fc0f639-d537-4893-8922-29c0bd33f2fb X-Archives-Hash: 0079278dd5014aeaab658989498f7ffd commit: f278d016c128d71ac8538c67a86bc015b00b1b07 Author: Benda Xu gentoo org> AuthorDate: Sat Oct 8 02:09:47 2016 +0000 Commit: Benda XU gentoo org> CommitDate: Sun Oct 9 03:36:28 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f278d016 app-portage/java-ebuilder: initial commit. Java team package tool for generating maven overlay. app-portage/java-ebuilder/Manifest | 3 ++ app-portage/java-ebuilder/java-ebuilder-0.1.ebuild | 60 ++++++++++++++++++++++ .../java-ebuilder/java-ebuilder-9999.ebuild | 60 ++++++++++++++++++++++ app-portage/java-ebuilder/metadata.xml | 11 ++++ 4 files changed, 134 insertions(+) diff --git a/app-portage/java-ebuilder/Manifest b/app-portage/java-ebuilder/Manifest new file mode 100644 index 00000000..8887534 --- /dev/null +++ b/app-portage/java-ebuilder/Manifest @@ -0,0 +1,3 @@ +DIST java-ebuilder-0.1.tar.gz 22291 SHA256 0c4dd0f76c0b36c7d736ed2f02ed06244ef7645be45bf7ca83ed27aaafe8787e SHA512 bc058b03da53bab03d7a48b2971f34da812bfd03aff7cc64ee4a3209245f4855bf8095d12c5c506f49b896db69fba09f06814f4c35e13a25c4e8f381d6416637 WHIRLPOOL 9ccacb782eedd8e56a5508f1379098579cd12bd86dac727df4577e218c295fa908cbcab49772934508e3f302607d5f075373948bfec93d214ad08b001b600b4f +EBUILD java-ebuilder-0.1.ebuild 1292 SHA256 cf1071eb609722fe98df90b62a03d38b5731fc71aa7788b61946dee95f0a4b39 SHA512 41634ca7d290cecca374242750a929d0a54670ba17e928c16e8904da4a3842e459b5650bc8c30a52ba4ffdc1a5d0276ebc869fb0353f825d38f31e61be88e0bc WHIRLPOOL 3870c039760262cd00157b571743fbb4d8bfd824a32b243805f181f0a0318f57d7d5318f8c6ac225296f78ff6eea624c4b4e7c6cefa628a534b5db6d3a73fb7a +EBUILD java-ebuilder-9999.ebuild 1292 SHA256 cf1071eb609722fe98df90b62a03d38b5731fc71aa7788b61946dee95f0a4b39 SHA512 41634ca7d290cecca374242750a929d0a54670ba17e928c16e8904da4a3842e459b5650bc8c30a52ba4ffdc1a5d0276ebc869fb0353f825d38f31e61be88e0bc WHIRLPOOL 3870c039760262cd00157b571743fbb4d8bfd824a32b243805f181f0a0318f57d7d5318f8c6ac225296f78ff6eea624c4b4e7c6cefa628a534b5db6d3a73fb7a diff --git a/app-portage/java-ebuilder/java-ebuilder-0.1.ebuild b/app-portage/java-ebuilder/java-ebuilder-0.1.ebuild new file mode 100644 index 00000000..4bd5e32 --- /dev/null +++ b/app-portage/java-ebuilder/java-ebuilder-0.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +if [[ ${PV} == 9999 ]]; then + ECLASS="git-r3" + EGIT_REPO_URI="https://github.com/heroxbd/${PN}.git" +else + SRC_URI="https://github.com/gentoo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +inherit java-pkg-2 java-pkg-simple prefix ${ECLASS} + +DESCRIPTION="Java team tool for semi-automatic creation of ebuilds from pom.xml" +HOMEPAGE="https://github.com/gentoo/java-ebuilder" + +LICENSE="GPL-2" +SLOT="0" + +DEPEND=">=virtual/jdk-1.8" +RDEPEND=">=virtual/jre-1.8" + +S="${WORKDIR}/${P}" + +JAVA_SRC_DIR="src/main/java" +JAVA_ADDRES_DIRS="src/main/resources" + +MAIN_CLASS="org.gentoo.java.ebuilder.Main" + +java_prepare() { + eapply_user + local base_dir="target/classes/" + [[ ! -d "${base_dir}" ]] &&mkdir -p "${base_dir}META-INF" + echo "Manifest-Version: 1.0 +Main-Class: ${MAIN_CLASS}" \ + >> "${base_dir}META-INF/MANIFEST.MF" +} + +src_prepare() { + hprefixify scripts/{{tree,meta}.sh,movl} + eapply_user +} + +src_install() { + java-pkg-simple_src_install + java-pkg_dolauncher ${PN} --main ${MAIN_CLASS} + + insinto /var/lib/${PN} + doins -r maven + dodir /var/lib/${PN}o/{poms,cache} + + dodoc README maven.conf + + exeinto /usr/lib/${PN} + doexe scripts/{tree,meta}.sh + + dobin scripts/movl +} diff --git a/app-portage/java-ebuilder/java-ebuilder-9999.ebuild b/app-portage/java-ebuilder/java-ebuilder-9999.ebuild new file mode 100644 index 00000000..4bd5e32 --- /dev/null +++ b/app-portage/java-ebuilder/java-ebuilder-9999.ebuild @@ -0,0 +1,60 @@ +# Copyright 2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +if [[ ${PV} == 9999 ]]; then + ECLASS="git-r3" + EGIT_REPO_URI="https://github.com/heroxbd/${PN}.git" +else + SRC_URI="https://github.com/gentoo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +inherit java-pkg-2 java-pkg-simple prefix ${ECLASS} + +DESCRIPTION="Java team tool for semi-automatic creation of ebuilds from pom.xml" +HOMEPAGE="https://github.com/gentoo/java-ebuilder" + +LICENSE="GPL-2" +SLOT="0" + +DEPEND=">=virtual/jdk-1.8" +RDEPEND=">=virtual/jre-1.8" + +S="${WORKDIR}/${P}" + +JAVA_SRC_DIR="src/main/java" +JAVA_ADDRES_DIRS="src/main/resources" + +MAIN_CLASS="org.gentoo.java.ebuilder.Main" + +java_prepare() { + eapply_user + local base_dir="target/classes/" + [[ ! -d "${base_dir}" ]] &&mkdir -p "${base_dir}META-INF" + echo "Manifest-Version: 1.0 +Main-Class: ${MAIN_CLASS}" \ + >> "${base_dir}META-INF/MANIFEST.MF" +} + +src_prepare() { + hprefixify scripts/{{tree,meta}.sh,movl} + eapply_user +} + +src_install() { + java-pkg-simple_src_install + java-pkg_dolauncher ${PN} --main ${MAIN_CLASS} + + insinto /var/lib/${PN} + doins -r maven + dodir /var/lib/${PN}o/{poms,cache} + + dodoc README maven.conf + + exeinto /usr/lib/${PN} + doexe scripts/{tree,meta}.sh + + dobin scripts/movl +} diff --git a/app-portage/java-ebuilder/metadata.xml b/app-portage/java-ebuilder/metadata.xml new file mode 100644 index 00000000..860761f --- /dev/null +++ b/app-portage/java-ebuilder/metadata.xml @@ -0,0 +1,11 @@ + + + + + gentoo/java-ebuilder + + + heroxbd@gentoo.org + Benda Xu + +