# Contributor: Isaac Dunham # Maintainer: # # HDF5 depends on zlib and provides a C interface by default. # Optionally, it can be built with szip (which has limitations on # commercial use and thus is non-free), MPI, and C++ and Fortran bindings. # C++ and Fortran bindings may not be thread-safe: # building either and passing --enable-threadsafe is unsupported. # Additionally, the 'high-level' bindings are incompatible with threadsafe # builds, due to inadequate locking. global pkgname := 'hdf5' global pkgver := '1.8.19' global pkgrel := '0' global pkgdesc := '"HDF5 is a data model, library, and file format for storing and managing data'" global url := '"http://www.hdfgroup.org/HDF5/'" global arch := '"all'" global license := '"custom'" global depends_dev := '"zlib-dev'" global makedepends := $depends_dev global subpackages := ""$pkgname-dev $pkgname-doc"" global source := ""http://www.hdfgroup.org/ftp/HDF5/current18/src/$pkgname-$pkgver.tar.bz2"" global builddir := ""$srcdir/$pkgname-$pkgver"" proc prepare { default_prepare update_config_sub } proc build { cd $builddir ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --disable-threadsafe \ --enable-cxx \ --enable-direct-vfd make } proc package { cd $builddir make DESTDIR="$pkgdir" install install -d "$pkgdir"/usr/share/licenses/"$pkgname" install -c -m 0644 COPYING "$pkgdir"/usr/share/licenses/"$pkgname"/COPYING } proc dev { mkdir -p "$subpkgdir"/usr/share mv "$pkgdir"/usr/share/hdf5_examples/ "$subpkgdir"/usr/share default_dev } global sha512sums := '"f4eccebbeb27d4b33c4aed4d040c9c83328b3d347a0fcf0bd74f3fd9ab988eb1473f1d69a8e34312df345988d3ba4e192624c8d6ad3ffbd3e456205f981ad90c hdf5-1.8.19.tar.bz2'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(hdf5)} spids:[31])] spids: [31] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(1.8.19)} spids:[34])] spids: [34] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(0)} spids:[37])] spids: [37] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("HDF5 is a data model, library, and file format for storing and managing data"))} spids: [40] ) ] spids: [40] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://www.hdfgroup.org/HDF5/"))} spids: [45] ) ] spids: [45] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (all))} spids:[50])] spids: [50] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (custom))} spids:[55])] spids: [55] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends_dev) op:Equal rhs:{(DQ (zlib-dev))} spids:[60])] spids: [60] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ ($ VSub_Name "$depends_dev"))} spids: [65] ) ] spids: [65] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") ("-dev ") ($ VSub_Name "$pkgname") (-doc))} spids: [70] ) ] spids: [70] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://www.hdfgroup.org/ftp/HDF5/current18/src/") ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (.tar.bz2) ) } spids: [78] ) ] spids: [78] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir") (/) ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver"))} spids: [88] ) ] spids: [88] ) (FuncDef name: prepare body: (BraceGroup children:[(C {(default_prepare)})(C {(update_config_sub)})] spids:[102]) spids: [98 101] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(./configure)} {(--build) (Lit_Other "=") ($ VSub_Name "$CBUILD")} {(--host) (Lit_Other "=") ($ VSub_Name "$CHOST")} {(--prefix) (Lit_Other "=") (/usr)} {(--sysconfdir) (Lit_Other "=") (/etc)} {(--mandir) (Lit_Other "=") (/usr/share/man)} {(--infodir) (Lit_Other "=") (/usr/share/info)} {(--localstatedir) (Lit_Other "=") (/var)} {(--disable-threadsafe)} {(--enable-cxx)} {(--enable-direct-vfd)} ) (C {(make)}) ] spids: [117] ) spids: [113 116] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(make)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(install)}) (C {(install)} {(-d)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/share/licenses/) (DQ ($ VSub_Name "$pkgname"))} ) (C {(install)} {(-c)} {(-m)} {(0644)} {(COPYING)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/share/licenses/) (DQ ($ VSub_Name "$pkgname")) (/COPYING) } ) ] spids: [193] ) spids: [189 192] ) (FuncDef name: dev body: (BraceGroup children: [ (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/share)}) (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/share/hdf5_examples/)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/share)} ) (C {(default_dev)}) ] spids: [252] ) spids: [248 251] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "f4eccebbeb27d4b33c4aed4d040c9c83328b3d347a0fcf0bd74f3fd9ab988eb1473f1d69a8e34312df345988d3ba4e192624c8d6ad3ffbd3e456205f981ad90c hdf5-1.8.19.tar.bz2" ) ) } spids: [283] ) ] spids: [283] ) ] )