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 4D73413835A for ; Sun, 16 May 2021 19:06:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 810B6E077F; Sun, 16 May 2021 19:06:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 69C16E077F for ; Sun, 16 May 2021 19:06:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8B801340FA2 for ; Sun, 16 May 2021 19:06:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3F1A063D for ; Sun, 16 May 2021 19:06:14 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1621191969.314148a1802a3bca0b6a9e32c39533a5d4255c3f.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/antlr/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/antlr/antlr-2.7.7-r9.ebuild X-VCS-Directories: dev-java/antlr/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: 314148a1802a3bca0b6a9e32c39533a5d4255c3f X-VCS-Branch: master Date: Sun, 16 May 2021 19:06:14 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d07260a2-8a39-4aef-83e1-80d65a0ab973 X-Archives-Hash: 08c5c2b9dd5b63be03f620a703bcac88 commit: 314148a1802a3bca0b6a9e32c39533a5d4255c3f Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Sun May 16 08:27:48 2021 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Sun May 16 19:06:09 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=314148a1 dev-java/antlr: EAPI 7, min java 1.8 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Volkmar W. Pogatzki pogatzki.net> Signed-off-by: Miroslav Šulc gentoo.org> dev-java/antlr/antlr-2.7.7-r9.ebuild | 49 ++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/dev-java/antlr/antlr-2.7.7-r9.ebuild b/dev-java/antlr/antlr-2.7.7-r9.ebuild new file mode 100644 index 00000000000..f7a42851863 --- /dev/null +++ b/dev-java/antlr/antlr-2.7.7-r9.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="A parser generator for many languages" +HOMEPAGE="https://www.antlr2.org/" +SRC_URI="https://www.antlr2.org/download/${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="examples" + +RDEPEND=">=virtual/jre-1.8:*" +DEPEND=">=virtual/jdk-1.8:*" + +S="${WORKDIR}/${P}" + +JAVA_SRC_DIR="${S}/${PN}" + +DOCS=( CHANGES.txt README.txt ) + +src_prepare() { + default + java-pkg_clean + + # Delete build files from examples. + find examples \( -name Makefile.in -o -name shiplist \) -delete || die +} + +# Avoid configure script. +src_configure() { :; } + +src_install() { + java-pkg-simple_src_install + java-pkg_dolauncher antlr --main antlr.Tool + + use doc && java-pkg_dohtml -r doc/* + use examples && java-pkg_doexamples examples/java + use source && java-pkg_dosrc antlr + + # https://bugs.gentoo.org/789582 + einstalldocs +}