phodav: Update to 2.3

This commit is contained in:
Alexey Pavlov
2019-06-07 22:57:06 +03:00
parent 948aed7c75
commit 9532b08505
3 changed files with 45 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
--- phodav-2.3/doc/meson.build.orig 2019-06-07 22:42:00.097707400 +0300
+++ phodav-2.3/doc/meson.build 2019-06-07 22:43:33.445046500 +0300
@@ -11,7 +11,7 @@
asciidoc = find_program('asciidoc', required : false)
xmlto = find_program('xmlto', required : false)
-if asciidoc.found() and xmlto.found()
+if asciidoc.found() and xmlto.found() and build_machine.system() != 'windows'
xml = custom_target(
'chezdav XML',
input : [ 'chezdav.txt' ],

View File

@@ -0,0 +1,17 @@
--- phodav-2.3/doc/meson.build.orig 2019-06-07 22:49:42.050129500 +0300
+++ phodav-2.3/doc/meson.build 2019-06-07 22:50:02.578303700 +0300
@@ -1,11 +1,7 @@
-if build_machine.system() == 'windows'
- message('Disabling gtk-doc while building on Windows')
+if find_program('gtkdoc-scan', required : get_option('gtk_doc')).found()
+ subdir('reference')
else
- if find_program('gtkdoc-scan', required : get_option('gtk_doc')).found()
- subdir('reference')
- else
- message('Not building documentation as gtk-doc was not found')
- endif
+ message('Not building documentation as gtk-doc was not found')
endif
asciidoc = find_program('asciidoc', required : false)

View File

@@ -7,19 +7,29 @@ pkgver=2.3
pkgrel=1
arch=('any')
pkgdesc="A WebDAV server using libsoup (mingw-w64)"
depends=("${MINGW_PACKAGE_PREFIX}-libsoup")
depends=("${MINGW_PACKAGE_PREFIX}-glib2"
"${MINGW_PACKAGE_PREFIX}-libsoup"
"${MINGW_PACKAGE_PREFIX}-libxml2")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-asciidoc"
"${MINGW_PACKAGE_PREFIX}-meson"
"${MINGW_PACKAGE_PREFIX}-ninja"
"${MINGW_PACKAGE_PREFIX}-gtk-doc")
options=('strip' 'staticlibs')
license=("LGPL 2.1")
url="https://www.gnome.org"
source=(https://download.gnome.org/sources/${_realname}/${pkgver}/${_realname}-$pkgver.tar.xz)
sha256sums=('6ef61e624c30a42fb720ef7ade7447e9ba922d69024b0326dc072fa3362ebe59')
source=(https://download.gnome.org/sources/${_realname}/${pkgver}/${_realname}-${pkgver}.tar.xz
001-skip-man-for-win.patch
002-enable-gtk-doc-for-win.patch)
sha256sums=('6ef61e624c30a42fb720ef7ade7447e9ba922d69024b0326dc072fa3362ebe59'
'd5efa5820e37f305f3508baf4948ee8f0611e810a86b24489955c41afedc1595'
'b24b7bc59c309faf6cf3c47f7e928fbb45273616b20aad49f05a785bdf0f2f68')
prepare() {
cd "${srcdir}"/${_realname}-${pkgver}
# xmlto write in wrong path when pass Windows style directory from meson
patch -p1 -i ${srcdir}/001-skip-man-for-win.patch
patch -p1 -i ${srcdir}/002-enable-gtk-doc-for-win.patch
}
build() {
@@ -39,5 +49,9 @@ package() {
cd "${srcdir}/build-${MINGW_CHOST}"
DESTDIR="${pkgdir}${MINGW_PREFIX}" ninja install
local _PRE_WIN="$(cygpath -m ${MINGW_PREFIX})"
sed -e "s|${_PRE_WIN}|${MINGW_PREFIX}|g" \
-i ${pkgdir}${MINGW_PREFIX}/lib/pkgconfig/libphodav-2.0.pc
install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/lib${_realname}/COPYING"
}