Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/astyle: astyle-2.04.ebuild ChangeLog
Date: Wed, 28 May 2014 23:58:19
Message-Id: 20140528235815.43C1F2004E@flycatcher.gentoo.org
1 jer 14/05/28 23:58:15
2
3 Modified: ChangeLog
4 Added: astyle-2.04.ebuild
5 Log:
6 Version bump (bug #496746 by David Hallas).
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
9
10 Revision Changes Path
11 1.48 dev-util/astyle/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/astyle/ChangeLog?rev=1.48&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/astyle/ChangeLog?rev=1.48&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/astyle/ChangeLog?r1=1.47&r2=1.48
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/astyle/ChangeLog,v
20 retrieving revision 1.47
21 retrieving revision 1.48
22 diff -u -r1.47 -r1.48
23 --- ChangeLog 24 Apr 2013 06:46:17 -0000 1.47
24 +++ ChangeLog 28 May 2014 23:58:15 -0000 1.48
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-util/astyle
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/ChangeLog,v 1.47 2013/04/24 06:46:17 xarthisius Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/ChangeLog,v 1.48 2014/05/28 23:58:15 jer Exp $
31 +
32 +*astyle-2.04 (28 May 2014)
33 +
34 + 28 May 2014; Jeroen Roovers <jer@g.o> +astyle-2.04.ebuild:
35 + Version bump (bug #496746 by David Hallas).
36
37 *astyle-2.03 (24 Apr 2013)
38
39 @@ -119,7 +124,7 @@
40 Dropped ppc-macos keyword, see you in prefix
41
42 14 Nov 2007; Robin H. Johnson <robbat2@g.o> astyle-1.21.ebuild:
43 - Fix $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/ChangeLog,v 1.47 2013/04/24 06:46:17 xarthisius Exp $ string.
44 + Fix $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/ChangeLog,v 1.48 2014/05/28 23:58:15 jer Exp $ string.
45
46 *astyle-1.21 (07 Oct 2007)
47
48
49
50
51 1.1 dev-util/astyle/astyle-2.04.ebuild
52
53 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/astyle/astyle-2.04.ebuild?rev=1.1&view=markup
54 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/astyle/astyle-2.04.ebuild?rev=1.1&content-type=text/plain
55
56 Index: astyle-2.04.ebuild
57 ===================================================================
58 # Copyright 1999-2014 Gentoo Foundation
59 # Distributed under the terms of the GNU General Public License v2
60 # $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/astyle-2.04.ebuild,v 1.1 2014/05/28 23:58:15 jer Exp $
61
62 EAPI=5
63
64 inherit eutils java-pkg-opt-2 multilib toolchain-funcs
65
66 DESCRIPTION="Artistic Style is a reindenter and reformatter of C++, C and Java source code"
67 HOMEPAGE="http://astyle.sourceforge.net/"
68 SRC_URI="mirror://sourceforge/astyle/astyle_${PV}_linux.tar.gz"
69
70 LICENSE="LGPL-2.1"
71 SLOT="0"
72 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
73
74 IUSE="doc java static-libs"
75
76 DEPEND="app-arch/xz-utils
77 java? ( >=virtual/jdk-1.6 )"
78 RDEPEND="${DEPEND}"
79
80 S=${WORKDIR}/${PN}
81
82 pkg_setup() {
83 java-pkg-opt-2_pkg_setup
84 tc-export CXX
85 }
86
87 src_prepare() {
88 epatch "${FILESDIR}"/${PN}-2.02.1-build_system.patch
89 java-pkg-opt-2_src_prepare
90 sed -e "s:^\(JAVAINCS\s*\)=.*$:\1= $(java-pkg_get-jni-cflags):" \
91 -e "s:ar crs:$(tc-getAR) crs:" \
92 -i build/gcc/Makefile || die
93 }
94
95 src_compile() {
96 emake -f ../build/gcc/Makefile -C src \
97 ${PN} \
98 shared \
99 $(usex java java '') \
100 $(usex static-libs static '')
101 }
102
103 src_install() {
104 insinto /usr/include
105 doins src/${PN}.h
106
107 pushd src/bin &> /dev/null
108 dobin ${PN}
109
110 dolib.so lib${PN}.so.0.0.0
111 dosym lib${PN}.so.0.0.0 /usr/$(get_libdir)/lib${PN}.so.0
112 dosym lib${PN}.so.0.0.0 /usr/$(get_libdir)/lib${PN}.so
113 if use java ; then
114 dolib.so lib${PN}j.so.0.0.0
115 dosym lib${PN}j.so.0.0.0 /usr/$(get_libdir)/lib${PN}j.so.0
116 dosym lib${PN}j.so.0.0.0 /usr/$(get_libdir)/lib${PN}j.so
117 fi
118 if use static-libs ; then
119 dolib lib${PN}.a
120 fi
121 popd &> /dev/null
122
123 use doc && dohtml doc/*
124 }