aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-libs/cgal/Manifest24
-rw-r--r--sci-libs/cgal/cgal-3.2.1.ebuild121
-rw-r--r--sci-libs/cgal/files/cgal_redhat.patch27
-rw-r--r--sci-libs/cgal/files/cgal_soname.patch11
-rw-r--r--sci-libs/cgal/files/digest-cgal-3.2.13
-rw-r--r--sci-libs/cgal/metadata.xml5
6 files changed, 191 insertions, 0 deletions
diff --git a/sci-libs/cgal/Manifest b/sci-libs/cgal/Manifest
new file mode 100644
index 000000000..66d1df42f
--- /dev/null
+++ b/sci-libs/cgal/Manifest
@@ -0,0 +1,24 @@
+AUX cgal_redhat.patch 847 RMD160 e2a34445fc5d4ef3ff700e640ae0c0724cc8b014 SHA1 f68421364555d0f0b1c55f33aee65de94023bb0a SHA256 150b3c57a2031f95e5227628806d5f4bc587cc10f68bc3e7335d374a4db277a5
+MD5 f69ced473d9b5702771c1dfefd7fc74d files/cgal_redhat.patch 847
+RMD160 e2a34445fc5d4ef3ff700e640ae0c0724cc8b014 files/cgal_redhat.patch 847
+SHA256 150b3c57a2031f95e5227628806d5f4bc587cc10f68bc3e7335d374a4db277a5 files/cgal_redhat.patch 847
+AUX cgal_soname.patch 436 RMD160 abbaf339bc91c55cc85688b0d431c73314c37838 SHA1 3a290d1844fa59c4015860931eb772aef698144b SHA256 1d51e828c7c4a13e0d9ba9120a55d09ffde5a35b8b4141827868e0f6805a4ae1
+MD5 2b451c68c6ee52ae7f164037763b7b20 files/cgal_soname.patch 436
+RMD160 abbaf339bc91c55cc85688b0d431c73314c37838 files/cgal_soname.patch 436
+SHA256 1d51e828c7c4a13e0d9ba9120a55d09ffde5a35b8b4141827868e0f6805a4ae1 files/cgal_soname.patch 436
+DIST CGAL-3.2.1.tar.gz 6391058 RMD160 a0d484140c58f19c0aecd2085588df4d51d41165 SHA1 7999cdd99b35324a6cd0c4c1747e08f5bcd87b95 SHA256 b3dd4fa56744738cb77f18c5097a409fa0ab8245e745fb56e8ebca4311c2a353
+EBUILD cgal-3.2.1.ebuild 3602 RMD160 1bd21b8e46d4ccf7b5b43fbd3bc5d2956bdaa954 SHA1 d51b0e9062a142a211657614d906c6c850b466e8 SHA256 c7f6b50ec988c390e87dd011783afbc5f1698cfc6aee83089811d3f2c4a43245
+MD5 45e400ffd8a8cc1a4458d42f755e0b95 cgal-3.2.1.ebuild 3602
+RMD160 1bd21b8e46d4ccf7b5b43fbd3bc5d2956bdaa954 cgal-3.2.1.ebuild 3602
+SHA256 c7f6b50ec988c390e87dd011783afbc5f1698cfc6aee83089811d3f2c4a43245 cgal-3.2.1.ebuild 3602
+MISC .cgal-3.2.1.ebuild.swp 16384 RMD160 4faa3b8d3fcbe67aaf1e6fdf31d2916180bbdb28 SHA1 a3c58a0d2926e6945208540d629cdf96b13b2685 SHA256 3f85a9b9369891f42a7481a47480b770888e571c42fe64d103c2bd15b3d910ff
+MD5 7b9bd946077897140618864f1eabd5c2 .cgal-3.2.1.ebuild.swp 16384
+RMD160 4faa3b8d3fcbe67aaf1e6fdf31d2916180bbdb28 .cgal-3.2.1.ebuild.swp 16384
+SHA256 3f85a9b9369891f42a7481a47480b770888e571c42fe64d103c2bd15b3d910ff .cgal-3.2.1.ebuild.swp 16384
+MISC metadata.xml 169 RMD160 e1db75ae5d177dffc400468c7d76a7e1fe41876d SHA1 0c953712f9b97d5ab3f95ae71997ffbc96c4007d SHA256 36837b011d26f0b83477c7a8632cb0099aedbcba5a3e45c61f20292e079f6180
+MD5 710d6aa631e09429775457ff1d26b14e metadata.xml 169
+RMD160 e1db75ae5d177dffc400468c7d76a7e1fe41876d metadata.xml 169
+SHA256 36837b011d26f0b83477c7a8632cb0099aedbcba5a3e45c61f20292e079f6180 metadata.xml 169
+MD5 dc033dfccb20de803df1e0254d7dca06 files/digest-cgal-3.2.1 235
+RMD160 0a8e4765afd2e0db26228a534d13ae5dfe496221 files/digest-cgal-3.2.1 235
+SHA256 167f6578b165524dfe77dd81175a519d1a2a7a0deca879e04f45382ba0b5fbe8 files/digest-cgal-3.2.1 235
diff --git a/sci-libs/cgal/cgal-3.2.1.ebuild b/sci-libs/cgal/cgal-3.2.1.ebuild
new file mode 100644
index 000000000..3c61263ad
--- /dev/null
+++ b/sci-libs/cgal/cgal-3.2.1.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils toolchain-funcs qt3
+
+DESCRIPTION="The Computational Geometry Algorithms Library is an Open
+Source C++ library of geometric algorithms and data structures."
+HOMEPAGE="http://www.cgal.org/"
+DLPAGE="http://www.cgal.org/download/"
+PKN="$(echo ${PN} | tr {a-z} {A-Z})"
+PK="$(echo ${P} | tr {a-z} {A-Z})"
+SRC_URI="${PK}.tar.gz"
+#SRC_URI="ftp://ftp.mpi-sb.mpg.de/pub/outgoing/${PKN}/${PK}.tar.gz"
+
+LICENSE="LGPL-2 QPL"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="X zlib qt3 examples"
+RESTRICT="fetch"
+
+DEPEND="zlib? ( sys-libs/zlib )
+ qt3? ( $(qt_min_version 3.0) )
+ examples? ( $(qt_min_version 3.0) )
+ X? ( virtual/x11 )
+ dev-libs/mpfr
+ sci-libs/libcore
+ dev-libs/gmp
+ dev-libs/boost"
+RDEPEND="virtual/libc"
+
+S="${WORKDIR}/${PK}"
+
+pkg_nofetch() {
+ einfo "Due to license restrictions that may apply to the file in this"
+ einfo "package, you must download ${SRC_URI} file manually from"
+ einfo "${DLPAGE} and put it in ${DISTDIR}."
+}
+
+src_unpack(){
+ if use examples; then
+ ewarn "Examples actualy require 28M of disk space."
+ fi
+ unpack "${A}"
+ cd "${S}"
+ epatch "${FILESDIR}/${PN}_soname.patch"
+ # Patch from redhat bug #199168
+ # http://bugzilla.redhat.com/bugzilla/attachment.cgi?id=135376
+ # it should be not applied becauseof its textrelaction and issue
+ # about undefined symbol: _ZN18QMetaObjectCleanUpC1EPKcPFP11QMetaObjectvE
+ # epatch "${FILESDIR}/${PN}_redhat.patch"
+}
+
+src_compile(){
+ CGALDIR="${S}/cgal_install_dir"
+ myconf="--prefix=${CGALDIR} \
+ --with-boost=n \
+ --with-boost-param-options=n \
+ --with-core=n \
+ --with-gmp=n \
+ --with-gmpxx=n \
+ --with-mpfr=n"
+
+ use X && myconf="${myconf} --with-x11=n"
+ use zlib && myconf="${myconf} --with-zlib=n"
+ if use qt3 || use examples; then
+ myconf="${myconf} --with-qt3mt=n --qt_incl_dir ${QTDIR}/include/ \
+ --qt_lib_dir ${QTDIR}/lib"
+ fi
+
+ myconf="${myconf} --without-autofind"
+
+ # we use CORE headers provided by libcore
+ rm -r "${S}/include/CORE"
+
+ ./install_cgal ${myconf} -ni $(which $(tc-getCXX)) || \
+ die "Unable to compile"
+}
+
+src_install(){
+ SDIR="$(ls ${CGALDIR}/lib/)"
+ LIBNAME="${CGALDIR}/lib/${SDIR}/libCGAL"
+
+ dolib "${LIBNAME}.a" "${LIBNAME}.so" || die "Unable to install ${LIBNAME}"
+ if use qt3 || use examples; then
+ dolib "${LIBNAME}Qt.a" ||\
+ die "Unable to install ${LIBNAME}Qt.a"
+ #"${LIBNAME}Qt.so"
+ fi
+ dosym "/usr/lib/libCGAL.so" "/usr/lib/libCGAL.so.1" && \
+ dosym "/usr/lib/libCGAL.so" "/usr/lib/libCGAL.so.1.0.0" || \
+ die "Unable to create symlinks"
+
+ CGALINC="${CGALDIR}/include/"
+ rm -r "${CGALINC}/OpenNL/LICENSE.OPENNL" || \
+ die "Unable to remove uneeded headers"
+ if ! use qt3 || ! use examples ; then
+ rm $(find ${CGALINC}/CGAL/ -name "Qt*") || \
+ die "Unable to remove Qt headers"
+ fi
+ cp -rp "${CGALINC}" "${D}/usr/" || \
+ die "Unable to install headers"
+
+ sed "s:${CGALDIR}:/usr:g" -i \
+ "${CGALDIR}/make/makefile_${SDIR}" || die "Unable to correct makefle"
+ dodir "/usr/share/CGAL" || die "Unable to create share directory"
+ cp "${CGALDIR}/make/makefile_${SDIR}" "${D}/usr/share/CGAL/makefile" || \
+ die "Unable to install makefile"
+ einfo "CGAL_MAKEFILE was installed in : /usr/share/CGAL/makefile"
+
+ if use examples; then
+ dodir /usr/share/doc/${P}
+ cp -r "${S}/demo" "${D}/usr/share/doc/${P}"
+ cp -r "${S}/examples" "${D}/usr/share/doc/${P}"
+ einfo "There are 2 directories : demo and examples in"
+ einfo "/usr/share/doc/${P}"
+ einfo "which contains samples applications. To compile them"
+ einfo "use the following command :"
+ einfo "CGAL_MAKEFILE=/usr/share/CGAL/makefile make"
+ fi
+}
diff --git a/sci-libs/cgal/files/cgal_redhat.patch b/sci-libs/cgal/files/cgal_redhat.patch
new file mode 100644
index 000000000..77a4073e1
--- /dev/null
+++ b/sci-libs/cgal/files/cgal_redhat.patch
@@ -0,0 +1,27 @@
+diff -ur src/CGALQt/makefile src/CGALQt/makefile
+--- src/CGALQt/makefile 2006-05-23 17:15:58.000000000 +0200
++++ src/CGALQt/makefile 2006-05-24 15:59:33.000000000 +0200
+@@ -71,15 +71,21 @@
+
+ static_lib: lib
+
+-lib: lib_no_install
++lib: lib_no_install lib_shared
+ mv $(CGAL_QT_LIB) $(CGAL_LIB_DESTINATION)
++ mv libCGALQt.so $(CGAL_LIB_DESTINATION)
++ rm $(CGAL_OBJECTS)
+
+ lib_no_install: $(CGAL_OBJECTS)
+ $(CGAL_LIB_CREATE)$(CGAL_QT_LIB) \
+ `ls *$(OBJ_EXT) | awk '{for (i=1; i<=NF;++i){printf "$(CGAL_OBJ_PREFIX)";print $$i}}'`\
+ $(CGAL_LIB_LDFLAGS)
+ $(RANLIB) $(CGAL_QT_LIB)
+- rm $(CGAL_OBJECTS)
++
++lib_shared: $(CGAL_OBJECTS)
++ $(CGAL_SHARED_LIB_CREATE)libCGALQt.so \
++ `ls *$(OBJ_EXT) | awk '{for (i=1; i<=NF;++i){printf "$(CGAL_OBJ_PREFIX)";print $$i}}'`\
++ $(CGAL_LIB_LDFLAGS)
+
+ clean:
+ rm -f $(CGAL_QT_LIB) $(CGAL_OBJECTS) *.moc
diff --git a/sci-libs/cgal/files/cgal_soname.patch b/sci-libs/cgal/files/cgal_soname.patch
new file mode 100644
index 000000000..a0bfb630d
--- /dev/null
+++ b/sci-libs/cgal/files/cgal_soname.patch
@@ -0,0 +1,11 @@
+--- install_cgal 2006-07-13 21:01:01.000000000 +0200
++++ install_cgal 2006-10-04 13:33:18.000000000 +0200
+@@ -767,7 +767,7 @@
+ CGAL_OBJ_PREFIX=""
+ CGAL_SHARED_LIB_CXXFLAGS="-fpic"
+ CGAL_SHARED_LIB_LDFLAGS=
+- CGAL_SHARED_LIB_CREATE="\$(CGAL_CXX) -shared"
++ CGAL_SHARED_LIB_CREATE="\$(CGAL_CXX) -shared -Wl,-soname,libCGAL.so.1"
+ CGAL_SHARED_LIB_INSTALL_NAME=""
+ CGAL_WINLIB_CXXFLAGS=""
+ CGAL_QT_CXXFLAGS=""
diff --git a/sci-libs/cgal/files/digest-cgal-3.2.1 b/sci-libs/cgal/files/digest-cgal-3.2.1
new file mode 100644
index 000000000..a824a6e97
--- /dev/null
+++ b/sci-libs/cgal/files/digest-cgal-3.2.1
@@ -0,0 +1,3 @@
+MD5 82c98d44aa88d1154631f266e85d3b35 CGAL-3.2.1.tar.gz 6391058
+RMD160 a0d484140c58f19c0aecd2085588df4d51d41165 CGAL-3.2.1.tar.gz 6391058
+SHA256 b3dd4fa56744738cb77f18c5097a409fa0ab8245e745fb56e8ebca4311c2a353 CGAL-3.2.1.tar.gz 6391058
diff --git a/sci-libs/cgal/metadata.xml b/sci-libs/cgal/metadata.xml
new file mode 100644
index 000000000..3190fbf9c
--- /dev/null
+++ b/sci-libs/cgal/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci-geosciences</herd>
+</pkgmetadata>