summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2015-08-14 09:19:29 -0500
committerMatthias Maier <tamiko@gentoo.org>2015-08-14 09:19:51 -0500
commitf573a07ea65bbbe518d0ce42e0f631630a36069b (patch)
tree15092fffc47de7b4aeeccc3b0bb978e8eb20063f /dev-util/astyle
parentsys-auth/consolekit: Make pm-utils optional (diff)
downloadgentoo-f573a07ea65bbbe518d0ce42e0f631630a36069b.tar.gz
gentoo-f573a07ea65bbbe518d0ce42e0f631630a36069b.tar.bz2
gentoo-f573a07ea65bbbe518d0ce42e0f631630a36069b.zip
dev-util/astyle: version bump to 2.05.1 (bug #530584)
This commit also updates the soname handling (no trailing .0 in soname any more). Special thanks to David Hallas for an initial ebuild update. Gentoo-Bug: 530584 Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-util/astyle')
-rw-r--r--dev-util/astyle/Manifest1
-rw-r--r--dev-util/astyle/astyle-2.04-r1.ebuild (renamed from dev-util/astyle/astyle-2.04.ebuild)4
-rw-r--r--dev-util/astyle/astyle-2.05.1.ebuild65
-rw-r--r--dev-util/astyle/files/astyle-2.05.1-build_system.patch56
4 files changed, 124 insertions, 2 deletions
diff --git a/dev-util/astyle/Manifest b/dev-util/astyle/Manifest
index 6701525c12bc..d036cc373a7a 100644
--- a/dev-util/astyle/Manifest
+++ b/dev-util/astyle/Manifest
@@ -1,3 +1,4 @@
DIST astyle_2.02.1_linux.tar.gz 153253 SHA256 0bece9a32887e51f42c57617cf7c4f9b63d0a386749fe3a094f5525b639ef953 SHA512 5a156910a2610b1c49bfe78ac237e1bb13e9627912db107ef98fead88a29f000ed355446c033fd052112d54a4f2bbdf3f484ef58b9976c311c06cde951fda274 WHIRLPOOL 96451afd3f4bb6eaa51f33b2f565e545f401973a00ef6653ee4dbeff85ca7c06928e12d54249a8221e881c20f4d1bdea023fbe04ac57631601e15a3453dc2b79
DIST astyle_2.03_linux.tar.gz 142577 SHA256 22b5249a0b8c9fab3b3bcd467abcb3c6b4a78458b528028634a83dca4c6ca389 SHA512 5f23ef010edba0ddd7377b2a6023a0d97e22f7247e20a0c94d56252fef55b6de291b3c9de67f5ddfa02906cd44470e136ae49e38f7bd2afe65a204245230a579 WHIRLPOOL b97a212dd4c92e24af9c5aa99fafcc5de929e94a81e160244d9cbc66bc7b97e0ca415e21b8e1eae35ef659b42423e1dd9b154fbddf36fef7fc344deca39dc156
DIST astyle_2.04_linux.tar.gz 156974 SHA256 70b37f4853c418d1e2632612967eebf1bdb93dfbe558c51d7d013c9b4e116b60 SHA512 bc0f6351fac4198ab969251342c4e453064b07512a2d06825a93c75daf86b06469c9971f35fbadad872d23368dc546019d8d174e07ceaad6e10007f562fdeffd WHIRLPOOL d9aa3f537885e373d791204652ed5c8d5231be0840ef5dde3714bb8c9c524e327585a51b7b14da1aae2952f7c9248401bc2769290bc5828d15f030f41d95c1fe
+DIST astyle_2.05.1_linux.tar.gz 152765 SHA256 fbdfc6f1966a972d19a215927266c76d4183eee235ed1e2bd7ec551c2a270eac SHA512 853bf84cb196f2300ca00fb7f18fe336764f1205ae0674a75c1a019bf734495d8fb3d9b6aca0ea258b6632921fb268906128c1afb80596532489749cd2cbe495 WHIRLPOOL ceef3bfa64632a4fe9afcc332fdf742e60b6e7d21655449372bd6c89db7444eddf6bbfee48684bb9f18e119cf040f36c62544cfc8bb040ed83095e9aed9fce56
diff --git a/dev-util/astyle/astyle-2.04.ebuild b/dev-util/astyle/astyle-2.04-r1.ebuild
index 71a7e6c0104c..3ac6b57bc829 100644
--- a/dev-util/astyle/astyle-2.04.ebuild
+++ b/dev-util/astyle/astyle-2.04-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -17,7 +17,7 @@ KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE="doc java static-libs"
DEPEND="app-arch/xz-utils
- java? ( >=virtual/jdk-1.6 )"
+ java? ( >=virtual/jdk-1.6:= )"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${PN}
diff --git a/dev-util/astyle/astyle-2.05.1.ebuild b/dev-util/astyle/astyle-2.05.1.ebuild
new file mode 100644
index 000000000000..9a0762b5c9a0
--- /dev/null
+++ b/dev-util/astyle/astyle-2.05.1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils java-pkg-opt-2 multilib toolchain-funcs
+
+DESCRIPTION="Artistic Style is a reindenter and reformatter of C++, C and Java source code"
+HOMEPAGE="http://astyle.sourceforge.net/"
+SRC_URI="mirror://sourceforge/astyle/astyle_${PV}_linux.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+
+IUSE="doc java static-libs"
+
+DEPEND="app-arch/xz-utils
+ java? ( >=virtual/jdk-1.6:= )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}
+
+pkg_setup() {
+ java-pkg-opt-2_pkg_setup
+ tc-export CXX
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build_system.patch
+ java-pkg-opt-2_src_prepare
+ sed -e "s:^\(JAVAINCS\s*\)=.*$:\1= $(java-pkg_get-jni-cflags):" \
+ -e "s:ar crs:$(tc-getAR) crs:" \
+ -i build/gcc/Makefile || die
+}
+
+src_compile() {
+ emake -f ../build/gcc/Makefile -C src \
+ ${PN} \
+ shared \
+ $(usex java java '') \
+ $(usex static-libs static '')
+}
+
+src_install() {
+ insinto /usr/include
+ doins src/${PN}.h
+
+ pushd src/bin &> /dev/null
+ dobin ${PN}
+
+ dolib.so lib${P}.so
+ dosym lib${P}.so /usr/$(get_libdir)/lib${PN}.so
+ if use java ; then
+ dolib.so lib${P}j.so
+ dosym lib${P}j.so /usr/$(get_libdir)/lib${PN}j.so
+ fi
+ if use static-libs ; then
+ dolib lib${PN}.a
+ fi
+ popd &> /dev/null
+
+ use doc && dohtml doc/*
+}
diff --git a/dev-util/astyle/files/astyle-2.05.1-build_system.patch b/dev-util/astyle/files/astyle-2.05.1-build_system.patch
new file mode 100644
index 000000000000..23554499c798
--- /dev/null
+++ b/dev-util/astyle/files/astyle-2.05.1-build_system.patch
@@ -0,0 +1,56 @@
+diff --git a/build/gcc/Makefile b/build/gcc/Makefile
+index b1af4c1..1dfa021 100755
+--- a/build/gcc/Makefile
++++ b/build/gcc/Makefile
+@@ -34,15 +34,15 @@ objdir = obj
+ ipath=$(prefix)/bin
+ CBASEFLAGS = -W -Wall -fno-rtti -fno-exceptions
+ JAVAINCS = -I$(JAVA_HOME)/include
+-CXX = g++
++CXX ?= g++
+ INSTALL=install -o $(USER) -g $(USER)
+
+ ##################################################
+
+ # define compile options for each build
+-ifdef CFLAGS
+- CFLAGSr = -DNDEBUG $(CBASEFLAGS) $(CFLAGS)
+- CFLAGSd = -g $(CBASEFLAGS) $(CFLAGS)
++ifdef CXXFLAGS
++ CFLAGSr = -DNDEBUG $(CBASEFLAGS) $(CXXFLAGS)
++ CFLAGSd = -g $(CBASEFLAGS) $(CXXFLAGS)
+ else
+ CFLAGSr = -DNDEBUG -O3 $(CBASEFLAGS)
+ CFLAGSd = -g $(CBASEFLAGS)
+@@ -134,13 +134,13 @@ astyled: $(OBJd)
+ shared: libastyle-2.05.1.so
+ libastyle-2.05.1.so: $(OBJs)
+ @ mkdir -p $(bindir)
+- $(CXX) -shared $(LDFLAGSr) -o $(bindir)/$@ $^
++ $(CXX) -shared -Wl,-soname,$@ $(LDFLAGSr) -o $(bindir)/$@ $^
+ @ echo
+
+ shareddebug: libastyle-2.05.1d.so
+ libastyle-2.05.1d.so: $(OBJsd)
+ @ mkdir -p $(bindir)
+- $(CXX) -shared $(LDFLAGSd) -o $(bindir)/$@ $^
++ $(CXX) -shared -Wl,-soname,$@ $(LDFLAGSr) -o $(bindir)/$@ $^
+ @ echo
+
+ static: libastyle.a
+@@ -158,13 +158,13 @@ libastyled.a: $(OBJad)
+ java: libastyle-2.05.1j.so
+ libastyle-2.05.1j.so: $(OBJsj)
+ @ mkdir -p $(bindir)
+- $(CXX) -shared $(LDFLAGSr) -o $(bindir)/$@ $^
++ $(CXX) -shared -Wl,-soname,$@ $(LDFLAGSr) -o $(bindir)/$@ $^
+ @ echo
+
+ javadebug: libastyle-2.05.1jd.so
+ libastyle-2.05.1jd.so: $(OBJsjd)
+ @ mkdir -p $(bindir)
+- $(CXX) -shared $(LDFLAGSd) -o $(bindir)/$@ $^
++ $(CXX) -shared -Wl,-soname,$@ $(LDFLAGSr) -o $(bindir)/$@ $^
+ @ echo
+
+ all: release debug shared shareddebug static staticdebug