52 lines
1.3 KiB
Bash
52 lines
1.3 KiB
Bash
# Template file for 'med'
|
|
pkgname=med
|
|
version=4.1.0
|
|
revision=4
|
|
build_style=gnu-configure
|
|
configure_args="--with-swig=yes --includedir=/usr/include/med"
|
|
hostmakedepends="gcc-fortran swig python3-setuptools"
|
|
makedepends="hdf5-devel python3-devel tk-devel"
|
|
depends="tk" # xmdump* are wish scripts
|
|
short_desc="Data Modelization and Exchanges"
|
|
maintainer="Piraty <mail@piraty.dev>"
|
|
license="GPL-3.0-only, LGPL-3.0-only"
|
|
homepage="https://www.salome-platform.org"
|
|
distfiles="http://files.salome-platform.org/Salome/other/med-${version}.tar.gz"
|
|
checksum=847db5d6fbc9ce6924cb4aea86362812c9a5ef6b9684377e4dd6879627651fce
|
|
|
|
nocross="hdf5 is nocross"
|
|
|
|
post_extract() {
|
|
# The py-compile helper uses the imp module, removed in Python 3.12;
|
|
# besides, we don't want the module pre-compiled anyway, so just drop it
|
|
: > config/py-compile
|
|
cat > config/py-compile <<-'EOF'
|
|
#!/bin/sh
|
|
: "$@"
|
|
EOF
|
|
}
|
|
|
|
libmed-devel_package() {
|
|
short_desc+=" library - development files"
|
|
depends="libmed>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove "usr/include"
|
|
vmove "usr/lib/libmed*.a"
|
|
vmove "usr/lib/libmed*.so"
|
|
}
|
|
}
|
|
|
|
libmed_package() {
|
|
short_desc+=" library"
|
|
pkg_install() {
|
|
vmove "usr/lib/libmed*"
|
|
}
|
|
}
|
|
|
|
med-doc_package() {
|
|
short_desc+=" - Documentation"
|
|
pkg_install() {
|
|
vmove usr/share/doc/med
|
|
}
|
|
}
|