Skip to content

Commit

Permalink
dev-libs/antlr-c: multilib--, static-libs--
Browse files Browse the repository at this point in the history
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Apr 3, 2021
1 parent 3652272 commit b4cfe08
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
18 changes: 10 additions & 8 deletions dev-libs/antlr-c/antlr-c-3.5.2-r1.ebuild
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit eutils autotools multilib-minimal
inherit autotools multilib-minimal

MY_PN="${PN%-c}"
DESCRIPTION="The ANTLR3 C Runtime"
HOMEPAGE="https://www.antlr3.org/"
SRC_URI="https://github.com/${MY_PN}/${MY_PN}3/archive/${PV}.tar.gz -> ${MY_PN}-${PV}.tar.gz"
S="${WORKDIR}/${MY_PN}3-${PV}/runtime/C"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="debug debugger doc static-libs"
IUSE="debug debugger doc"

DEPEND="doc? ( app-doc/doxygen[dot] )"
RDEPEND=""
BDEPEND="doc? ( app-doc/doxygen[dot] )"

S="${WORKDIR}/${MY_PN}3-${PV}/runtime/C"
PATCHES=( "${FILESDIR}/3.5-cflags.patch" )
MULTILIB_WRAPPED_HEADERS=( /usr/include/antlr3config.h )
DOCS=( AUTHORS ChangeLog NEWS README )
Expand All @@ -32,9 +32,9 @@ src_prepare() {
multilib_src_configure() {
local econfargs=(
--enable-shared
--disable-static
$(use_enable debug debuginfo)
$(use_enable debugger antlrdebug)
$(use_enable static-libs static)
)

case "${ABI}" in
Expand All @@ -58,6 +58,8 @@ src_compile() {

src_install() {
use doc && HTML_DOCS=( "${S}/api/" )

multilib-minimal_src_install
find "${D}" -name '*.la' -delete || die

find "${ED}" -name '*.la' -delete || die
}
5 changes: 2 additions & 3 deletions dev-libs/antlr-c/files/3.5-cflags.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
diff -ur libantlr3c-3.3-SNAPSHOT.old//configure.ac libantlr3c-3.3-SNAPSHOT/configure.ac
--- libantlr3c-3.3-SNAPSHOT.old//configure.ac 2011-04-03 10:40:51.277000042 +0300
+++ libantlr3c-3.3-SNAPSHOT/configure.ac 2011-04-03 10:41:22.092000042 +0300
--- a/configure.ac
+++ b/configure.ac
@@ -134,8 +134,8 @@
;;
esac
Expand Down

0 comments on commit b4cfe08

Please sign in to comment.