summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2017-07-04 23:23:29 +1000
committerMichael Palimaka <kensington@gentoo.org>2017-07-04 23:29:40 +1000
commit62743237f197457f7c43bc71620ff143b9acc7c2 (patch)
tree50383fef2b331d828f23fff848907504fc3bd2d7 /media-gfx/opencsg/opencsg-1.4.2.ebuild
parentkde-misc/kio-stash: new package (diff)
downloadgentoo-62743237f197457f7c43bc71620ff143b9acc7c2.tar.gz
gentoo-62743237f197457f7c43bc71620ff143b9acc7c2.tar.bz2
gentoo-62743237f197457f7c43bc71620ff143b9acc7c2.zip
media-gfx/opencsg: version bump 1.4.2
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'media-gfx/opencsg/opencsg-1.4.2.ebuild')
-rw-r--r--media-gfx/opencsg/opencsg-1.4.2.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/media-gfx/opencsg/opencsg-1.4.2.ebuild b/media-gfx/opencsg/opencsg-1.4.2.ebuild
new file mode 100644
index 000000000000..1c905349bf89
--- /dev/null
+++ b/media-gfx/opencsg/opencsg-1.4.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit qmake-utils
+
+MY_P="OpenCSG-${PV}"
+DESCRIPTION="The Constructive Solid Geometry rendering library"
+HOMEPAGE="http://www.opencsg.org"
+SRC_URI="http://www.opencsg.org/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-libs/glew:0="
+DEPEND="${RDEPEND}
+ dev-qt/qtcore:5
+"
+
+S="${WORKDIR}/${MY_P}/src"
+
+src_prepare() {
+ default
+
+ # removes duplicated headers
+ rm -r ../glew || die "failed to remove bundled glew"
+
+ sed -i -e "s:^target.path.*:target.path = \$\$INSTALLDIR/$(get_libdir):" \
+ src.pro \
+ || die 'failed to fix target.path in src.pro'
+}
+
+src_configure() {
+ eqmake5 src.pro INSTALLDIR="/usr"
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+}