updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / camfr / PKGBUILD
blob1ea4b67ac4ebdab497c8c55165d55c97f00d1b3a
1 # see 
2 # http://www.gentoo-portage.com/sci-physics/camfr/ChangeLog
3 # http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/camfr/
6 pkgname=camfr
7 pkgver=20070717
8 pkgrel=4
9 pkgdesc="CAvity Modelling FRamework -- full-vectorial Maxwell solver (Python)"
10 arch=('i686')
11 license=('GPL')
12 url="http://camfr.sourceforge.net/"
13 depends=('python2' 'python2-numpy' 'python-scipy' 'python-matplotlib' 'scons>=0.98' 'boost>=1.33' \
14          'blitz>=0.9' 'blas' 'lapack' 'python-imaging')
15 optdepends=('atlas-lapac: optimised ATLAS routines'
16             'py++:     Py++ package and Boost.Python')
17 source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tgz" \
18         $pkgname-$pkgver-gcc43.patch machine_cfg.py.arch)
19 md5sums=('3858d6b9e3be29aa3981c2b4fe595fe2'
20          '16c51fabaa17740f12dea4e70bf3dc08'
21          '396962ec2f4a3838f31f1b8e498ae3e6')
24 build() {
25     #cd $startdir/src/$pkgname-$pkgver
26     cd $srcdir/camfr_$pkgver
27     patch -Np0 < ../$pkgname-$pkgver-gcc43.patch || return 1
28     # scons redefines F77 to FORTRAN for env variables
29     sed -i -e 's/F77/FORTRAN/g' SConstruct || die
30     cp ../machine_cfg.py.arch ./machine_cfg.py
31     python2 setup.py build || return 1
32     python2 setup.py install --prefix=/usr --root=$startdir/pkg
35 md5sums=('3858d6b9e3be29aa3981c2b4fe595fe2'
36          '16c51fabaa17740f12dea4e70bf3dc08'
37          '43daa3cf218bc161a9148cb6613b5c92')
38 md5sums=('3858d6b9e3be29aa3981c2b4fe595fe2'
39          '16c51fabaa17740f12dea4e70bf3dc08'
40          '6d80f148d5cf26ca368547da128c1776')