/[gentoo-x86]/media-gfx/freecad/freecad-0.12.5284-r2.ebuild
Gentoo

Contents of /media-gfx/freecad/freecad-0.12.5284-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Oct 19 10:43:17 2012 UTC (2 years, 8 months ago) by jlec
Branch: MAIN
Changes since 1.4: +3 -6 lines
media-gfx/freecad: Remove virtual/fortran and always call fortran-2_pkg_setup as intend by the updated fortran-2.eclass

(Portage version: 2.2.0_alpha141/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/freecad/freecad-0.12.5284-r2.ebuild,v 1.4 2012/09/16 10:48:23 pacho Exp $
4
5 EAPI=4
6 PYTHON_DEPEND=2
7
8 inherit base multilib fortran-2 flag-o-matic python cmake-utils
9
10 MY_P="freecad-${PV}"
11 MY_PD="FreeCAD-${PV}"
12
13 DESCRIPTION="QT based Computer Aided Design application"
14 HOMEPAGE="http://sourceforge.net/apps/mediawiki/free-cad/"
15 SRC_URI="mirror://sourceforge/free-cad/${MY_P}.tar.gz"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86"
20 IUSE=""
21
22 RDEPEND="
23 dev-cpp/eigen:3
24 dev-games/ode
25 dev-libs/boost
26 dev-libs/libf2c
27 dev-libs/xerces-c
28 dev-python/pivy
29 dev-python/PyQt4[svg]
30 media-libs/coin
31 media-libs/SoQt
32 >=sci-libs/opencascade-6.3-r3
33 sci-libs/gts
34 sys-libs/zlib
35 virtual/glu
36 x11-libs/qt-gui:4
37 x11-libs/qt-opengl:4
38 x11-libs/qt-svg:4
39 x11-libs/qt-webkit:4
40 x11-libs/qt-xmlpatterns:4"
41 DEPEND="${RDEPEND}
42 >=dev-lang/swig-2.0.4-r1"
43
44 RESTRICT="bindist mirror"
45 # http://bugs.gentoo.org/show_bug.cgi?id=352435
46 # http://www.gentoo.org/foundation/en/minutes/2011/20110220_trustees.meeting_log.txt
47
48 S="${WORKDIR}/${MY_PD}"
49
50 PATCHES=(
51 "${FILESDIR}/${P}-gcc46.patch"
52 "${FILESDIR}/${P}-removeoldswig.patch"
53 "${FILESDIR}/${P}-glu.patch"
54 "${FILESDIR}/${P}-nodir.patch"
55 "${FILESDIR}/${P}-nopivy.patch"
56 "${FILESDIR}/${P}-qt3support.patch"
57 "${FILESDIR}/${P}-boost148.patch"
58 )
59
60 pkg_setup() {
61 fortran-2_pkg_setup
62 python_set_active_version 2
63 }
64
65 src_prepare() {
66 base_src_prepare
67 append-cxxflags -fpermissive
68 }
69
70 src_configure() {
71 local mycmakeargs=(
72 -DOCC_INCLUDE_DIR=${CASROOT}/inc
73 -DOCC_INCLUDE_PATH=${CASROOT}/inc
74 -DOCC_LIBRARY=${CASROOT}/lib/libTKernel.so
75 -DOCC_LIBRARY_DIR=${CASROOT}/lib
76 -DOCC_LIB_PATH=${CASROOT}/lib
77 -DCOIN3D_INCLUDE_DIR=/usr/include/coin
78 -DCOIN3D_LIBRARY=/usr/$(get_libdir)/libCoin.so
79 -DSOQT_LIBRARY=/usr/$(get_libdir)/libSoQt.so
80 -DSOQT_INCLUDE_PATH=/usr/include/coin
81 )
82 cmake-utils_src_configure
83 }
84
85 src_install() {
86 cmake-utils_src_install
87
88 find "${D}" -name "*.la" -exec rm {} +
89
90 dodoc README.Linux ChangeLog.txt
91 }

  ViewVC Help
Powered by ViewVC 1.1.20