diff options
author | 2009-05-26 11:11:47 +0200 | |
---|---|---|
committer | 2009-05-26 11:11:47 +0200 | |
commit | 9da6e67ad69b5ab04a8f7bd6762a7048b44654d2 (patch) | |
tree | 4995eaa05ec4a93131c044f6262ca6a4e1837421 /sci-misc | |
parent | new version (diff) | |
download | lordvan-9da6e67ad69b5ab04a8f7bd6762a7048b44654d2.tar.gz lordvan-9da6e67ad69b5ab04a8f7bd6762a7048b44654d2.tar.bz2 lordvan-9da6e67ad69b5ab04a8f7bd6762a7048b44654d2.zip |
added brlcad from bugs.gentoo.org
Diffstat (limited to 'sci-misc')
-rw-r--r-- | sci-misc/brlcad/ChangeLog | 10 | ||||
-rw-r--r-- | sci-misc/brlcad/Manifest | 4 | ||||
-rw-r--r-- | sci-misc/brlcad/brlcad-7.14.8-r1.ebuild | 89 | ||||
-rw-r--r-- | sci-misc/brlcad/files/usr-local.patch | 11 |
4 files changed, 114 insertions, 0 deletions
diff --git a/sci-misc/brlcad/ChangeLog b/sci-misc/brlcad/ChangeLog new file mode 100644 index 0000000..53ce58e --- /dev/null +++ b/sci-misc/brlcad/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-misc/brlcad +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*brlcad-7.14.8-r1 (26 May 2009) + + 26 May 2009; Thomas Raschbacher <lordvan@gentoo.org> + +brlcad-7.14.8-r1.ebuild, +files/usr-local.patch: + add ebuild from Bug #77197 + diff --git a/sci-misc/brlcad/Manifest b/sci-misc/brlcad/Manifest new file mode 100644 index 0000000..d499710 --- /dev/null +++ b/sci-misc/brlcad/Manifest @@ -0,0 +1,4 @@ +AUX usr-local.patch 393 RMD160 e724433627f0dfc4ecab007a1040c0177c2df9ed SHA1 c5a9ece96c58e4a71e193c096ea1aed97a939226 SHA256 48a1f7375a4a1b876ae20f0ba3430b2130c488ec6e31f80327168300469d34a8 +DIST brlcad-7.14.8.tar.bz2 41500972 RMD160 bb0f82124597bc283a4611e76dc6acedeaf7595b SHA1 e2341c584d2e37818ad432be385ce61286d65576 SHA256 c031aafa205aefa5e4859e55e0b523fc93eb61d3d3ae0682a70e4bdb140d81bf +EBUILD brlcad-7.14.8-r1.ebuild 2586 RMD160 4bcf2fc358bfc3c72ce835c95068d2bfc239c56d SHA1 c7fce18a8a3c63cc9b300df0f924aa8d8d690693 SHA256 0c78494ec1d2a97c82984a7a5e80b34062361076ebc62d015daf35bbca53dcc1 +MISC ChangeLog 286 RMD160 010263b79e70ce6c71885c6995ab1d8d95eeaeae SHA1 91dc8d7794cca7934fb2bff76010d27775f5091f SHA256 9b55fd6a017bd62c1d1d2f40a9751159bd619dee83ba0d00211a3fdb0bbe215b diff --git a/sci-misc/brlcad/brlcad-7.14.8-r1.ebuild b/sci-misc/brlcad/brlcad-7.14.8-r1.ebuild new file mode 100644 index 0000000..ae2d174 --- /dev/null +++ b/sci-misc/brlcad/brlcad-7.14.8-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils autotools flag-o-matic multilib + +DESCRIPTION="Powerful Constructive Solid Geometry modeling system." +HOMEPAGE="http://brlcad.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="LGPL-2 BSD BDL" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug opengl" + +DEPEND="media-libs/libpng + sys-libs/zlib + dev-tcltk/itcl + dev-tcltk/itk + dev-tcltk/blt + dev-tcltk/iwidgets + media-libs/urt" + +RDEPEND="${DEPEND}" + +brlcadprefix="/usr/brlcad" + +src_unpack() { + unpack ${A} + cd "${S}" + #epatch "${FILESDIR}"/brlcad-tcltk-man_install.patch + # eautoreconf doesn't seem to work, run autogen.sh + epatch ${FILESDIR}/usr-local.patch + #epatch "${FILESDIR}/brlcad-${PV}-tkBind.patch" + filter-ldflags "-Wl,--as-needed" + #sh autogen.sh +} + +src_compile() { + local myconf + filter-ldflags "-Wl,--as-needed" + # --disable-step-build to disable fedex build + myconf="${myconf} \ + --enable-documentation \ + --enable-iwidgets-build \ + --enable-libblt-build \ + --enable-libtkimg-build \ + --enable-models \ + --disable-step-build \ + --enable-opennurbs-build" + + use debug && + myconf="${myconf} --enable-debug" || + myconf="${myconf} --disable-debug --enable-optimized \ + --disable-runtime-debug" + + use opengl && myconf="${myconf} --with-ogl" + + ./configure $myconf || die "configure failed" + emake || die "emake failed" +} + + +src_install() { +einfo install + + emake DESTDIR="${D}" install || die "emake install failed" + #fix broken symlink + #cd ${D}/${brlcadprefix}/$(get_libdir) + #rm librtserver.so + #ln -s librt.so.19.0.1 librtserver.so +einfo "setting up /etc/env.d/99brlcad" + dodir /etc/env.d || die + echo "PATH=${brlcadprefix}/bin" > "${D}"/etc/env.d/99brlcad || die + #echo "LDPATH=${brlcadprefix}/$(get_libdir)" >> "${D}"/etc/env.d/99brlcad || die + #echo "MANPATH=${brlcadprefix}/man" >> "${D}"/etc/env.d/99brlcad || die + #cd ${D}${brlcadprefix} + #echo "ITK_LIBRARY=${brlcadprefix}/$(find $(get_libdir) -maxdepth 1 -type d -name 'itk*' -print)" >> "${D}"/etc/env.d/99brlcad || die + #echo "ITCL_LIBRARY=${brlcadprefix}/$(find $(get_libdir) -maxdepth 1 -type d -name 'itcl*' -print)" >> "${D}"/etc/env.d/99brlcad || die +} + +pkg_postinst() { + einfo "The standard starting point for BRL-CAD is the mged" + einfo "command. Examples are available in ${brlcadprefix}/db." + einfo "To run an example, try:" + einfo "${brlcadprefix}/bin/mged ${brlcadprefix}/db/havoc.g" + einfo "In the mged terminal window, type 'draw havoc' to see" + einfo "the wireframe in the visualization window." +} diff --git a/sci-misc/brlcad/files/usr-local.patch b/sci-misc/brlcad/files/usr-local.patch new file mode 100644 index 0000000..318cca3 --- /dev/null +++ b/sci-misc/brlcad/files/usr-local.patch @@ -0,0 +1,11 @@ +--- old/configure.ac 2007-12-25 03:42:38.000000000 -0600 ++++ new/configure.ac 2007-12-25 03:43:12.000000000 -0600 +@@ -647,7 +647,7 @@ + ### + + dnl automatically scan /usr/local (e.g. BSD uses /usr/local for ports) +-BC_SEARCH_DIRECTORY([/usr/local]) ++#BC_SEARCH_DIRECTORY([/usr/local]) + + dnl find tclConfig.sh, add --with-tcl option, don't cache result for AC_CONFIG_SUBDIRS + SC_PATH_TCLCONFIG |