mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 18:32:58 +02:00
twaindsm: add twaindsm-doc + enable stripping
Stripping is actually ok, because DSM_Entry is found anyway. Create the doxygen html documentation and create twaindsm-doc.
This commit is contained in:
parent
50a3640336
commit
6830fe39fd
2 changed files with 22 additions and 6 deletions
1
srcpkgs/twaindsm-doc
Symbolic link
1
srcpkgs/twaindsm-doc
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
twaindsm
|
|
@ -1,11 +1,11 @@
|
||||||
# Template file for 'twaindsm'
|
# Template file for 'twaindsm'
|
||||||
pkgname=twaindsm
|
pkgname=twaindsm
|
||||||
version=2.3.0
|
version=2.3.0
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc="${pkgname}-${version}.orig"
|
wrksrc="${pkgname}-${version}.orig"
|
||||||
build_wrksrc="src"
|
build_wrksrc="src"
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
hostmakedepends="unzip"
|
hostmakedepends="doxygen unzip"
|
||||||
short_desc="TWAIN data source manager"
|
short_desc="TWAIN data source manager"
|
||||||
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
||||||
license="LGPL-2.1"
|
license="LGPL-2.1"
|
||||||
|
@ -13,14 +13,20 @@ homepage="http://www.twain.org"
|
||||||
distfiles="$SOURCEFORGE_SITE/twain-dsm/TWAIN%20DSM%20${version%.*.*}%20Source/${pkgname}-${version}.source.zip"
|
distfiles="$SOURCEFORGE_SITE/twain-dsm/TWAIN%20DSM%20${version%.*.*}%20Source/${pkgname}-${version}.source.zip"
|
||||||
checksum=9a51ba95b1e51bb5a5fb855799d802269c147b2ba362e030150b1c9980f988ce
|
checksum=9a51ba95b1e51bb5a5fb855799d802269c147b2ba362e030150b1c9980f988ce
|
||||||
|
|
||||||
# twaindsm.so is loaded dynamically by applications
|
|
||||||
# which want it to export the symbol DSM_Entry
|
|
||||||
nostrip=yes
|
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
sed -i CMakeLists.txt -e's; -Werror;;'
|
sed -i CMakeLists.txt -e's; -Werror;;'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_build() {
|
||||||
|
cd ${wrksrc}
|
||||||
|
# Fix backslash in pathname
|
||||||
|
sed -i Doxyfile -e's;.\\src;./src;g'
|
||||||
|
# Update Doxyfile
|
||||||
|
doxygen -u
|
||||||
|
# Generate documentation and redirect warnings to /dev/null
|
||||||
|
doxygen 2> /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
twaindsm-devel_package() {
|
twaindsm-devel_package() {
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
|
@ -29,3 +35,12 @@ twaindsm-devel_package() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
twaindsm-doc_package() {
|
||||||
|
short_desc+=" - documentation"
|
||||||
|
noarch=yes
|
||||||
|
pkg_install() {
|
||||||
|
vmkdir usr/share/doc/${pkgname}
|
||||||
|
mv ${wrksrc}/doc/html ${PKGDESTDIR}/usr/share/doc/${pkgname}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue