You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
mod_gnutls: update to 0.13.0; use meson
This commit is contained in:
+18
-16
@@ -2,11 +2,12 @@
|
||||
|
||||
PortSystem 1.0
|
||||
PortGroup github 1.0
|
||||
PortGroup meson 1.0
|
||||
|
||||
github.setup airtower-luna mod_gnutls 0.12.2 mod_gnutls/
|
||||
# Change github.tarball_from to 'releases' or 'archive' next update
|
||||
github.tarball_from tarball
|
||||
github.setup airtower-luna mod_gnutls 0.13.0 mod_gnutls/
|
||||
github.tarball_from archive
|
||||
revision 0
|
||||
|
||||
categories www security crypto
|
||||
license Apache-2
|
||||
maintainers {mps @Schamschula} openmaintainer
|
||||
@@ -22,37 +23,38 @@ long_description \
|
||||
|
||||
homepage https://github.com/airtower-luna/mod_gnutls/
|
||||
|
||||
checksums rmd160 2d386566e3457c23bd07a52aa3e1afbf34297ccf \
|
||||
sha256 bf7008fe6a37b99011de6c2406d9e7a394fb0df252a9bbc0d96d0dd8f6d14d44 \
|
||||
size 188791
|
||||
checksums rmd160 cd873c3892b0018e8798e396c0ee9ffb4759cf1a \
|
||||
sha256 a49d1ed4b242028f1e5eb0f14369ee2b073efafb5d27d5adfdf1153efe3a1752 \
|
||||
size 168071
|
||||
|
||||
set python.version 313
|
||||
set python.version 314
|
||||
set python.branch [string index ${python.version} 0].[string range ${python.version} 1 end]
|
||||
configure.python ${prefix}/bin/python${python.branch}
|
||||
|
||||
depends_build port:pkgconfig \
|
||||
depends_build port:pandoc \
|
||||
port:pkgconfig \
|
||||
port:python${python.version} \
|
||||
port:py${python.version}-yaml
|
||||
|
||||
depends_lib port:apache2 \
|
||||
path:lib/pkgconfig/gnutls.pc:gnutls
|
||||
|
||||
use_autoreconf yes
|
||||
patchfiles patch-meson.build.diff \
|
||||
patch-src-gnutls_sni.c.diff
|
||||
|
||||
patchfiles patch-src-gnutls_sni.c.diff
|
||||
# the patch-meson.build.diff patch and below reinplace should not be needed
|
||||
# after the next update: https://github.com/airtower-luna/mod_gnutls/pull/57
|
||||
post-patch {
|
||||
reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/meson.build
|
||||
}
|
||||
|
||||
set apxs ${prefix}/bin/apxs
|
||||
set httpd_conf ${prefix}/etc/apache2/httpd.conf
|
||||
set mdir ${destroot}${prefix}/lib/apache2/modules/
|
||||
|
||||
configure.args --disable-silent-rules \
|
||||
--with-apxs=${apxs} \
|
||||
--disable-strict
|
||||
configure.args -Dc_args=-Wno-error=format
|
||||
|
||||
compiler.blacklist-append {clang < 800}
|
||||
|
||||
configure.checks.implicit_function_declaration.whitelist-append strchr
|
||||
|
||||
pre-destroot {
|
||||
xinstall -m 755 -d ${mdir}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- meson.build.orig 2026-03-20 06:31:24
|
||||
+++ meson.build 2026-03-22 09:28:40
|
||||
@@ -39,7 +39,7 @@
|
||||
pandoc, '--version', check: true, capture: true).stdout().split()[1]
|
||||
message('Found Pandoc version:', pandoc_version)
|
||||
endif
|
||||
-httpd = find_program('apache2', 'httpd', dirs: ['/usr/sbin'], required: true)
|
||||
+httpd = find_program('apache2', 'httpd', dirs: ['%PREFIX%/sbin'], required: true)
|
||||
|
||||
incdir = include_directories('include')
|
||||
subdir('include')
|
||||
@@ -1,11 +0,0 @@
|
||||
--- src/Makefile.am.orig 2014-06-02 00:47:37.000000000 +0200
|
||||
+++ src/Makefile.am 2014-06-02 00:48:30.000000000 +0200
|
||||
@@ -15,7 +15,7 @@
|
||||
rm -fr .libs
|
||||
|
||||
install: make_so
|
||||
- @${APXS_BIN} -i -n gnutls mod_gnutls.so
|
||||
+ @${APXS_BIN} -S LIBEXECDIR=${DESTDIR}`${APXS_BIN} -q LIBEXECDIR`${MODULEPATH} -i -n gnutls mod_gnutls.so
|
||||
@echo ""
|
||||
@echo ""
|
||||
@echo "***********************************************"
|
||||
Reference in New Issue
Block a user