diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2014-02-15 23:24:26 +0200 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2014-02-15 23:24:26 +0200 |
commit | 7224c1253228e5c29c78cb3f0f26ce34770f2356 (patch) | |
tree | 1684924656132935256e034f35f92abee6623265 /media-gfx/freecad/freecad-0.12.5284-r2.ebuild |
Added ebuilds for kogaion desktop
Diffstat (limited to 'media-gfx/freecad/freecad-0.12.5284-r2.ebuild')
-rw-r--r-- | media-gfx/freecad/freecad-0.12.5284-r2.ebuild | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/media-gfx/freecad/freecad-0.12.5284-r2.ebuild b/media-gfx/freecad/freecad-0.12.5284-r2.ebuild new file mode 100644 index 00000000..dc7ea5b0 --- /dev/null +++ b/media-gfx/freecad/freecad-0.12.5284-r2.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/freecad/freecad-0.12.5284-r2.ebuild,v 1.7 2013/03/07 15:54:35 axs Exp $ + +EAPI=4 +PYTHON_DEPEND=2 + +inherit base multilib fortran-2 flag-o-matic python cmake-utils + +MY_P="freecad-${PV}" +MY_PD="FreeCAD-${PV}" + +DESCRIPTION="QT based Computer Aided Design application" +HOMEPAGE="http://sourceforge.net/apps/mediawiki/free-cad/" +SRC_URI="mirror://sourceforge/free-cad/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-cpp/eigen:3 + dev-games/ode + dev-libs/boost + dev-libs/libf2c + dev-libs/xerces-c[icu] + dev-python/pivy + dev-python/PyQt4[svg] + media-libs/coin + media-libs/SoQt + >=sci-libs/opencascade-6.3-r3 + sci-libs/gts + sys-libs/zlib + virtual/glu + dev-qt/qtgui:4 + dev-qt/qtopengl:4 + dev-qt/qtsvg:4 + dev-qt/qtwebkit:4 + dev-qt/qtxmlpatterns:4" +DEPEND="${RDEPEND} + >=dev-lang/swig-2.0.4-r1" + +RESTRICT="bindist mirror" +# http://bugs.gentoo.org/show_bug.cgi?id=352435 +# http://www.gentoo.org/foundation/en/minutes/2011/20110220_trustees.meeting_log.txt + +S="${WORKDIR}/${MY_PD}" + +PATCHES=( + "${FILESDIR}/${P}-gcc46.patch" + "${FILESDIR}/${P}-removeoldswig.patch" + "${FILESDIR}/${P}-glu.patch" + "${FILESDIR}/${P}-nodir.patch" + "${FILESDIR}/${P}-nopivy.patch" + "${FILESDIR}/${P}-qt3support.patch" + "${FILESDIR}/${P}-boost148.patch" +) + +pkg_setup() { + fortran-2_pkg_setup + python_set_active_version 2 +} + +src_prepare() { + base_src_prepare + append-cxxflags -fpermissive +} + +src_configure() { + local mycmakeargs=( + -DOCC_INCLUDE_DIR=${CASROOT}/inc + -DOCC_INCLUDE_PATH=${CASROOT}/inc + -DOCC_LIBRARY=${CASROOT}/lib/libTKernel.so + -DOCC_LIBRARY_DIR=${CASROOT}/lib + -DOCC_LIB_PATH=${CASROOT}/lib + -DCOIN3D_INCLUDE_DIR=/usr/include/coin + -DCOIN3D_LIBRARY=/usr/$(get_libdir)/libCoin.so + -DSOQT_LIBRARY=/usr/$(get_libdir)/libSoQt.so + -DSOQT_INCLUDE_PATH=/usr/include/coin + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + find "${D}" -name "*.la" -exec rm {} + + + dodoc README.Linux ChangeLog.txt +} |