Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/sg/, media-libs/sg/files/
Date: Sun, 09 Feb 2020 10:57:10
Message-Id: 1581245799.a880e5289842ee0e40b709b0f18a638cd8899beb.soap@gentoo
1 commit: a880e5289842ee0e40b709b0f18a638cd8899beb
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 9 10:56:39 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 9 10:56:39 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a880e528
7
8 media-libs/sg: Port to EAPI 7
9
10 Package-Manager: Portage-2.3.87, Repoman-2.3.20
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 media-libs/sg/files/1.4-AC_CONFIG_HEADERS.patch | 11 +++++
14 media-libs/sg/sg-1.5.ebuild | 65 +++++++++++++------------
15 2 files changed, 44 insertions(+), 32 deletions(-)
16
17 diff --git a/media-libs/sg/files/1.4-AC_CONFIG_HEADERS.patch b/media-libs/sg/files/1.4-AC_CONFIG_HEADERS.patch
18 new file mode 100644
19 index 00000000000..f57b6110593
20 --- /dev/null
21 +++ b/media-libs/sg/files/1.4-AC_CONFIG_HEADERS.patch
22 @@ -0,0 +1,11 @@
23 +--- a/configure.ac
24 ++++ b/configure.ac
25 +@@ -30,7 +30,7 @@
26 + dnl 0. autoconf initialization
27 + AC_INIT(sg, 1.0, mholst@×××××××××.edu)
28 + AC_CONFIG_SRCDIR(src/ogl/sg/ogl.h)
29 +-AM_CONFIG_HEADER(src/aaa_inc/sgcf.h)
30 ++AC_CONFIG_HEADERS(src/aaa_inc/sgcf.h)
31 + AC_CONFIG_AUX_DIR(config)
32 + AC_PREFIX_DEFAULT(${HOME})
33 + AC_CANONICAL_BUILD
34
35 diff --git a/media-libs/sg/sg-1.5.ebuild b/media-libs/sg/sg-1.5.ebuild
36 index ba5e44642aa..a172a6b00e6 100644
37 --- a/media-libs/sg/sg-1.5.ebuild
38 +++ b/media-libs/sg/sg-1.5.ebuild
39 @@ -1,57 +1,52 @@
40 -# Copyright 1999-2015 Gentoo Foundation
41 +# Copyright 1999-2020 Gentoo Authors
42 # Distributed under the terms of the GNU General Public License v2
43
44 -EAPI=5
45 +EAPI=7
46
47 -AUTOTOOLS_AUTORECONF=true
48 -
49 -inherit autotools-utils multilib
50 +inherit autotools
51
52 DESCRIPTION="Socket Graphics tool for displaying polygons"
53 HOMEPAGE="http://fetk.org/codes/sg/index.html"
54 SRC_URI="http://www.fetk.org/codes/download/${P}.tar.gz"
55
56 +LICENSE="GPL-2"
57 SLOT="0"
58 KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
59 -LICENSE="GPL-2"
60 -IUSE="doc static-libs"
61 +IUSE="doc"
62
63 RDEPEND="
64 dev-libs/maloc
65 + media-libs/mesa[X(+)]
66 virtual/glu
67 + x11-libs/libGLw
68 x11-libs/libXaw
69 - x11-libs/motif
70 - || (
71 - ( media-libs/mesa[X(+)] x11-libs/libGLw )
72 - media-libs/opengl-apple
73 - )"
74 -DEPEND="
75 - ${RDEPEND}
76 + x11-libs/motif"
77 +DEPEND="${RDEPEND}"
78 +BDEPEND="
79 doc? (
80 - media-gfx/graphviz
81 app-doc/doxygen
82 - )"
83 + media-gfx/graphviz
84 + )"
85
86 S="${WORKDIR}"/${PN}
87
88 PATCHES=(
89 "${FILESDIR}"/1.4-opengl.patch
90 "${FILESDIR}"/1.4-doc.patch
91 - )
92 + "${FILESDIR}"/1.4-AC_CONFIG_HEADERS.patch
93 +)
94
95 src_prepare() {
96 - rm src/{gl,glu,glw} -rf || die
97 - sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || die
98 - autotools-utils_src_prepare
99 + default
100 + rm -r src/{gl,glu,glw} || die
101 +
102 + eautoreconf
103 }
104
105 src_configure() {
106 - local sg_include
107 - local sg_lib
108 - local myeconfargs
109 + local sg_include="${EPREFIX}"/usr/include
110 + local sg_lib="${EPREFIX}"/usr/$(get_libdir)
111
112 - sg_include="${EPREFIX}"/usr/include
113 - sg_lib="${EPREFIX}"/usr/$(get_libdir)
114 export FETK_LIBRARY="${sg_lib}"
115 export FETK_MOTIF_LIBRARY="${sg_lib}"
116 export FETK_GL_LIBRARY="${sg_lib}"
117 @@ -63,13 +58,19 @@ src_configure() {
118 export FETK_GL_INCLUDE="${sg_include}"/GL
119 export FETK_MOTIF_INCLUDE="${sg_include}"
120
121 - use doc || myeconfargs+=( --with-doxygen= --with-dot= )
122 + econf \
123 + --disable-static \
124 + --disable-triplet \
125 + --enable-glforce \
126 + --enable-gluforce \
127 + --enable-glwforce \
128 + --with-doxygen=$(usex doc "${BROOT}"/usr/bin/doxygen "") \
129 + --with-dot=$(usex doc "${BROOT}"/usr/bin/dot "")
130 +}
131
132 - myeconfargs+=( --enable-glforce --enable-gluforce --enable-glwforce )
133 +src_install() {
134 + default
135
136 - myeconfargs+=(
137 - --docdir="${EPREFIX}"/usr/share/doc/${PF}
138 - --disable-triplet
139 - )
140 - autotools-utils_src_configure
141 + # no static archives
142 + find "${D}" -name '*.la' -delete || die
143 }