[arch-commits] Commit in opencascade/repos (14 files)
Date: Friday, September 23, 2016 @ 14:51:31 Author: bluewind Revision: 190213 archrelease: copy trunk to community-testing-i686, community-testing-x86_64 Added: opencascade/repos/community-testing-i686/ opencascade/repos/community-testing-i686/PKGBUILD (from rev 190212, opencascade/trunk/PKGBUILD) opencascade/repos/community-testing-i686/PKGBUILD-7.0.0 (from rev 190212, opencascade/trunk/PKGBUILD-7.0.0) opencascade/repos/community-testing-i686/env.sh (from rev 190212, opencascade/trunk/env.sh) opencascade/repos/community-testing-i686/opencascade.conf (from rev 190212, opencascade/trunk/opencascade.conf) opencascade/repos/community-testing-i686/opencascade.sh (from rev 190212, opencascade/trunk/opencascade.sh) opencascade/repos/community-testing-i686/salome-occt-6.9.1.patch (from rev 190212, opencascade/trunk/salome-occt-6.9.1.patch) opencascade/repos/community-testing-x86_64/ opencascade/repos/community-testing-x86_64/PKGBUILD (from rev 190212, opencascade/trunk/PKGBUILD) opencascade/repos/community-testing-x86_64/PKGBUILD-7.0.0 (from rev 190212, opencascade/trunk/PKGBUILD-7.0.0) opencascade/repos/community-testing-x86_64/env.sh (from rev 190212, opencascade/trunk/env.sh) opencascade/repos/community-testing-x86_64/opencascade.conf (from rev 190212, opencascade/trunk/opencascade.conf) opencascade/repos/community-testing-x86_64/opencascade.sh (from rev 190212, opencascade/trunk/opencascade.sh) opencascade/repos/community-testing-x86_64/salome-occt-6.9.1.patch (from rev 190212, opencascade/trunk/salome-occt-6.9.1.patch) --+ community-testing-i686/PKGBUILD | 65 + community-testing-i686/PKGBUILD-7.0.0| 54 + community-testing-i686/env.sh| 22 community-testing-i686/opencascade.conf |1 community-testing-i686/opencascade.sh|2 community-testing-i686/salome-occt-6.9.1.patch | 744 + community-testing-x86_64/PKGBUILD| 65 + community-testing-x86_64/PKGBUILD-7.0.0 | 54 + community-testing-x86_64/env.sh | 22 community-testing-x86_64/opencascade.conf|1 community-testing-x86_64/opencascade.sh |2 community-testing-x86_64/salome-occt-6.9.1.patch | 744 + 12 files changed, 1776 insertions(+) Copied: opencascade/repos/community-testing-i686/PKGBUILD (from rev 190212, opencascade/trunk/PKGBUILD) === --- community-testing-i686/PKGBUILD (rev 0) +++ community-testing-i686/PKGBUILD 2016-09-23 14:51:31 UTC (rev 190213) @@ -0,0 +1,65 @@ +# Maintainer: Florian Pritz+# Contributor: Giuseppe Borzi +# Contributor: Brice Malier +# Contributor: Michele Mocciola +pkgname=opencascade +pkgver=6.9.1 +pkgrel=7 +pkgdesc="Open CASCADE Technology, 3D modeling & numerical simulation" +arch=('i686' 'x86_64') +url="http://www.opencascade.org; +license=('custom') +depends=('tk' 'mesa' 'libxmu' 'ftgl' 'vtk6') +source=("https://sources.archlinux.org/other/community/opencascade/opencascade-$pkgver.tgz; "env.sh" "opencascade.sh" "opencascade.conf" 'salome-occt-6.9.1.patch') +md5sums=('7f2e645b5010d190c9bb35dc457f9a7c' + 'a96f28ee7f4273ae1771ee033a2a3af3' + 'd9368b8d348ced3ec4462012977552d2' + '2924ecf57c95d25888f51071fdc72ad0' + '88db8e6b9afa132d1893bbb814250350') + +# This works around a bug that is corrected in OCCT 7.0.0 +export CCFLAGS+=" -O2 -fno-delete-null-pointer-checks" +export CXXFLAGS+=" -O2 -fno-delete-null-pointer-checks" + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + + # fix build with vtk 6.3.0 + sed -i '/CSF_VTK_LIB/s/-6\.1//g' configure.ac + + # fix for automake 1.13 + sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac + + # Included in OCCT 7.0.0 + patch -i "$srcdir/salome-occt-6.9.1.patch" -p1 + + ./build_configure +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + + # fix build with vtk 6.3.0 + CXXFLAGS+=' -DvtkFloatingPointType=double' + + # Change to --enable-production with OCCT 7.0.0 + ./configure --disable-debug --disable-production \ +--with-vtk-library=/opt/vtk6/lib/ --with-vtk-include=/opt/vtk6/include/vtk/ \ +--prefix=/opt/$pkgname + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + # no DESTDIR support so use prefix. This has to suffix match the prefix in ./configure + make prefix="$pkgdir/opt/$pkgname" install + cp -r src/UnitsAPI/ "${pkgdir}/opt/$pkgname/src" + install -D -m644 "${srcdir}/opencascade.conf" "${pkgdir}/etc/ld.so.conf.d/opencascade.conf" + install -D -m 755 "${srcdir}/opencascade.sh" "${pkgdir}/etc/profile.d/opencascade.sh" + install -m 755 "${srcdir}/env.sh" "${pkgdir}/opt/$pkgname" + install -dm755
[arch-commits] Commit in opencascade/repos (14 files)
Date: Tuesday, September 13, 2016 @ 15:01:40 Author: bluewind Revision: 189268 archrelease: copy trunk to community-testing-i686, community-testing-x86_64 Added: opencascade/repos/community-testing-i686/ opencascade/repos/community-testing-i686/PKGBUILD (from rev 189267, opencascade/trunk/PKGBUILD) opencascade/repos/community-testing-i686/PKGBUILD-7.0.0 (from rev 189267, opencascade/trunk/PKGBUILD-7.0.0) opencascade/repos/community-testing-i686/env.sh (from rev 189267, opencascade/trunk/env.sh) opencascade/repos/community-testing-i686/opencascade.conf (from rev 189267, opencascade/trunk/opencascade.conf) opencascade/repos/community-testing-i686/opencascade.sh (from rev 189267, opencascade/trunk/opencascade.sh) opencascade/repos/community-testing-i686/salome-occt-6.9.1.patch (from rev 189267, opencascade/trunk/salome-occt-6.9.1.patch) opencascade/repos/community-testing-x86_64/ opencascade/repos/community-testing-x86_64/PKGBUILD (from rev 189267, opencascade/trunk/PKGBUILD) opencascade/repos/community-testing-x86_64/PKGBUILD-7.0.0 (from rev 189267, opencascade/trunk/PKGBUILD-7.0.0) opencascade/repos/community-testing-x86_64/env.sh (from rev 189267, opencascade/trunk/env.sh) opencascade/repos/community-testing-x86_64/opencascade.conf (from rev 189267, opencascade/trunk/opencascade.conf) opencascade/repos/community-testing-x86_64/opencascade.sh (from rev 189267, opencascade/trunk/opencascade.sh) opencascade/repos/community-testing-x86_64/salome-occt-6.9.1.patch (from rev 189267, opencascade/trunk/salome-occt-6.9.1.patch) --+ community-testing-i686/PKGBUILD | 59 + community-testing-i686/PKGBUILD-7.0.0| 54 + community-testing-i686/env.sh| 22 community-testing-i686/opencascade.conf |1 community-testing-i686/opencascade.sh|2 community-testing-i686/salome-occt-6.9.1.patch | 744 + community-testing-x86_64/PKGBUILD| 59 + community-testing-x86_64/PKGBUILD-7.0.0 | 54 + community-testing-x86_64/env.sh | 22 community-testing-x86_64/opencascade.conf|1 community-testing-x86_64/opencascade.sh |2 community-testing-x86_64/salome-occt-6.9.1.patch | 744 + 12 files changed, 1764 insertions(+) Copied: opencascade/repos/community-testing-i686/PKGBUILD (from rev 189267, opencascade/trunk/PKGBUILD) === --- community-testing-i686/PKGBUILD (rev 0) +++ community-testing-i686/PKGBUILD 2016-09-13 15:01:40 UTC (rev 189268) @@ -0,0 +1,59 @@ +# Maintainer: Florian Pritz+# Contributor: Giuseppe Borzi +# Contributor: Brice Malier +# Contributor: Michele Mocciola +pkgname=opencascade +pkgver=6.9.1 +pkgrel=3 +pkgdesc="Open CASCADE Technology, 3D modeling & numerical simulation" +arch=('i686' 'x86_64') +url="http://www.opencascade.org; +license=('custom') +depends=('tk' 'mesa' 'libxmu' 'ftgl' 'vtk6') +source=("https://sources.archlinux.org/other/community/opencascade/opencascade-$pkgver.tgz; "env.sh" "opencascade.sh" "opencascade.conf" 'salome-occt-6.9.1.patch') +md5sums=('7f2e645b5010d190c9bb35dc457f9a7c' + 'a96f28ee7f4273ae1771ee033a2a3af3' + 'd9368b8d348ced3ec4462012977552d2' + '2924ecf57c95d25888f51071fdc72ad0' + '88db8e6b9afa132d1893bbb814250350') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + + # fix build with vtk 6.3.0 + sed -i '/CSF_VTK_LIB/s/-6\.1//g' configure.ac + + # fix for automake 1.13 + sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac + + patch -i "$srcdir/salome-occt-6.9.1.patch" -p1 + + ./build_configure +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + + # fix build with vtk 6.3.0 + CXXFLAGS+=' -DvtkFloatingPointType=double' + + ./configure --disable-debug --enable-production \ +--with-vtk-library=/opt/vtk6/lib/ --with-vtk-include=/opt/vtk6/include/vtk/ \ +--prefix=/opt/$pkgname + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + # no DESTDIR support so use prefix. This has to suffix match the prefix in ./configure + make prefix="$pkgdir/opt/$pkgname" install + cp -r src/UnitsAPI/ "${pkgdir}/opt/$pkgname/src" + install -D -m644 "${srcdir}/opencascade.conf" "${pkgdir}/etc/ld.so.conf.d/opencascade.conf" + install -D -m 755 "${srcdir}/opencascade.sh" "${pkgdir}/etc/profile.d/opencascade.sh" + install -m 755 "${srcdir}/env.sh" "${pkgdir}/opt/$pkgname" + install -dm755 "$pkgdir/usr/share/licenses/$pkgname/" + install -m644 LICENSE_LGPL_21.txt OCCT_LGPL_EXCEPTION.txt "$pkgdir/usr/share/licenses/$pkgname" +} + +# vim:set ts=2 sw=2 et: Copied: opencascade/repos/community-testing-i686/PKGBUILD-7.0.0 (from rev 189267,