Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/povray/
Date: Mon, 29 Aug 2022 18:39:58
Message-Id: 1661798348.28c72d8ce608c7280ada1d1a13bcd85b2c4a6d10.asturm@gentoo
1 commit: 28c72d8ce608c7280ada1d1a13bcd85b2c4a6d10
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 28 17:38:45 2022 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 29 18:39:08 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28c72d8c
7
8 media-gfx/povray: drop 3.7.0.0-r1
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11
12 media-gfx/povray/povray-3.7.0.0-r1.ebuild | 145 ------------------------------
13 1 file changed, 145 deletions(-)
14
15 diff --git a/media-gfx/povray/povray-3.7.0.0-r1.ebuild b/media-gfx/povray/povray-3.7.0.0-r1.ebuild
16 deleted file mode 100644
17 index 1bca37a88528..000000000000
18 --- a/media-gfx/povray/povray-3.7.0.0-r1.ebuild
19 +++ /dev/null
20 @@ -1,145 +0,0 @@
21 -# Copyright 1999-2022 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=6
25 -
26 -inherit autotools flag-o-matic versionator virtualx
27 -
28 -POVRAY_MAJOR_VER=$(get_version_component_range 1-3)
29 -POVRAY_MINOR_VER=$(get_version_component_range 4)
30 -if [ -n "$POVRAY_MINOR_VER" ]; then
31 - POVRAY_MINOR_VER=${POVRAY_MINOR_VER/rc/RC}
32 - MY_PV="${POVRAY_MAJOR_VER}.${POVRAY_MINOR_VER}"
33 -else
34 - MY_PV=${POVRAY_MAJOR_VER}
35 -fi
36 -
37 -DESCRIPTION="The Persistence of Vision Raytracer"
38 -HOMEPAGE="https://www.povray.org/"
39 -SRC_URI="https://github.com/POV-Ray/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
40 - https://dev.gentoo.org/~soap/distfiles/${P}_p20160914-fix-c++14.patch.bz2"
41 -
42 -LICENSE="AGPL-3"
43 -SLOT="0"
44 -KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
45 -IUSE="debug +io-restrictions openexr tiff X"
46 -
47 -DEPEND="
48 - >=dev-libs/boost-1.50.0:=[threads(+)]
49 - media-libs/libpng:0
50 - sys-libs/zlib
51 - virtual/jpeg:0
52 - openexr? (
53 - media-libs/ilmbase:=
54 - <media-libs/openexr-3.0.0:0= )
55 - tiff? ( media-libs/tiff:0 )
56 - X? ( media-libs/libsdl )"
57 -RDEPEND="${DEPEND}"
58 -DEPEND="${DEPEND}
59 - sys-devel/autoconf-archive"
60 -
61 -S=${WORKDIR}/${PN}-${MY_PV}
62 -
63 -PATCHES=(
64 - "${FILESDIR}"/${P}-user-conf.patch
65 - "${FILESDIR}"/${P}-automagic.patch
66 - "${WORKDIR}"/${P}_p20160914-fix-c++14.patch
67 - "${FILESDIR}"/${P}-gcc6-openexr.patch
68 -)
69 -
70 -src_prepare() {
71 - [[ ${CHOST} == *-darwin* ]] && \
72 - PATCHES+=( "${FILESDIR}"/${PN}-3.7.0_rc6-darwin-defaults.patch )
73 - eapply "${FILESDIR}"/${PF}-boost-1.50.patch
74 -
75 - pushd unix &>/dev/null || die
76 - pushd config &>/dev/null || die
77 - rm -rf \
78 - acx_pthread.m4 \
79 - ax_boost_base.m4 \
80 - ax_boost_thread.m4 \
81 - ax_compare_version.m4 \
82 - ax_compiler_vendor.m4 \
83 - ax_compiler_version.m4 || die
84 - popd &>/dev/null || die
85 - bash -x prebuild.sh || die
86 - popd &>/dev/null || die
87 -
88 - rm -rf libraries || die
89 -
90 - # Change some directories that cannot be adjusted via configure
91 - sed \
92 - -e 's:${povsysconfdir}/$PACKAGE/$VERSION_BASE:${povsysconfdir}/'${PN}':g' \
93 - -e 's:${povdatadir}/$PACKAGE-$VERSION_BASE:${povdatadir}/'${PN}':g' \
94 - -e 's:${povdatadir}/doc/$PACKAGE-$VERSION_BASE:${povdatadir}/doc/'${PF}':g' \
95 - -e 's:BOOST_THREAD_LIBS $LIBS:BOOST_THREAD_LIBS $LIBS -lboost_date_time:g' \
96 - -e "s:\"/usr/include\":\"${EPREFIX}/usr/include\":" \
97 - -e "s:\"/usr/lib\":\"${EPREFIX}/usr/$(get_libdir)\":" \
98 - -i configure.ac || die
99 -
100 - sed \
101 - -e "s:^povlibdir = .*:povlibdir = @datadir@/${PN}:" \
102 - -e "s:^povdocdir = .*:povdocdir = @datadir@/doc/${PF}:" \
103 - -e "s:^povconfdir = .*:povconfdir = @sysconfdir@/${PN}:" \
104 - -e 's:mkdir_p:MKDIR_P:g' \
105 - -i Makefile.am || die
106 -
107 - # The "+p" option on the test command line causes a pause and
108 - # prompts the user to interact, so remove it.
109 - sed -i -e "s:biscuit.pov -f +d +p:biscuit.pov -f +d:" Makefile.am || die
110 - default
111 -
112 - eautoreconf
113 -}
114 -
115 -src_configure() {
116 - # Fixes bug 71255
117 - if [[ $(get-flag march) == k6-2 ]]; then
118 - filter-flags -fomit-frame-pointer
119 - fi
120 -
121 - # The config files are installed correctly (e.g. povray.conf),
122 - # but the code compiles using incorrect [default] paths
123 - # (based on /usr/local...), so povray will not find the system
124 - # config files without the following fix:
125 - append-cppflags -DPOVLIBDIR=\\\"${EROOT}usr/share/${PN}\\\" -DPOVCONFDIR=\\\"${EROOT}etc/${PN}\\\"
126 -
127 - econf \
128 - COMPILED_BY="Portage (Gentoo $(uname)) on $(hostname -f)" \
129 - $(use_enable debug) \
130 - $(use_enable io-restrictions) \
131 - $(use_with openexr openexr "${EPREFIX}/usr/$(get_libdir)") \
132 - $(use_with tiff libtiff "${EPREFIX}/usr/$(get_libdir)") \
133 - $(use_with X libsdl "${EPREFIX}/usr/$(get_libdir)") \
134 - $(use_with X x "${EPREFIX}/usr/$(get_libdir)") \
135 - $(usex tiff "" "NON_REDISTRIBUTABLE_BUILD=yes") \
136 - --with-boost-libdir="${EPREFIX}/usr/$(get_libdir)" \
137 - --without-libmkl \
138 - --disable-pipe \
139 - --disable-static \
140 - --disable-strip \
141 - --disable-optimiz \
142 - --disable-optimiz-arch
143 -}
144 -
145 -src_test() {
146 - virtx default
147 -}
148 -
149 -pkg_preinst() {
150 - # Copy the old config files if they are in the old location
151 - # but do not yet exist in the new location.
152 - # This way, they can be treated by CONFIG_PROTECT as normal.
153 - local conf_file version_dir
154 - for conf_file in "${ED}"/etc/"${PN}"/*; do
155 - if [ ! -e "${EROOT}etc/${PN}/${conf_file}" ]; then
156 - for version_dir in $(echo "${EROOT}"etc/"${PN}"/* | grep "^[0-9]" | sort -rn); do
157 - if [ -e "${EROOT}etc/${PN}/${version_dir}/${conf_file}" ]; then
158 - mv "${EROOT}etc/${PN}/${version_dir}/${conf_file}" "${EROOT}etc/${PN}" || die
159 - elog "Note: ${conf_file} moved from ${EROOT}etc/povray/${version_dir}/ to ${EROOT}etc/povray/"
160 - break
161 - fi
162 - done
163 - fi
164 - done
165 -}