You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
chemical-mime-data: Fix autoreconf failure with gettext 1.0
Also move the project from SourceForge to GitHub.
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
||||
|
||||
PortSystem 1.0
|
||||
PortGroup github 1.0
|
||||
|
||||
name chemical-mime-data
|
||||
version 0.1.94
|
||||
github.setup dleidert chemical-mime 0_1_94 release_
|
||||
version [string map {_ .} ${github.version}]
|
||||
revision 2
|
||||
|
||||
name chemical-mime-data
|
||||
categories science chemistry
|
||||
platforms any
|
||||
maintainers nomaintainer
|
||||
@@ -17,14 +19,15 @@ description data files to support various chemical MIME types
|
||||
long_description The chemical-mime-data package is a collection of data files to add support for various \
|
||||
chemical MIME types on Linux/UNIX desktops.
|
||||
|
||||
homepage http://chemical-mime.sourceforge.net/
|
||||
master_sites sourceforge:project/chemical-mime/chemical-mime-data/${version}
|
||||
master_sites macports_distfiles
|
||||
distname ${name}-${version}
|
||||
use_bzip2 yes
|
||||
|
||||
checksums rmd160 542274f991297e54f7ff881d0b49b8562fdb494c \
|
||||
sha256 4907cdf60e9edca0a453f6f24e9179ae9da085b67168e932ba44a4280316bff1
|
||||
sha256 4907cdf60e9edca0a453f6f24e9179ae9da085b67168e932ba44a4280316bff1 \
|
||||
size 146077
|
||||
|
||||
depends_build port:pkgconfig \
|
||||
depends_build path:bin/pkg-config:pkgconfig \
|
||||
port:intltool \
|
||||
port:gettext \
|
||||
port:ImageMagick \
|
||||
@@ -36,6 +39,8 @@ depends_build port:pkgconfig \
|
||||
depends_lib path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
|
||||
port:shared-mime-info
|
||||
|
||||
patchfiles acinclude.m4.patch
|
||||
|
||||
# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
|
||||
|
||||
post-patch {
|
||||
@@ -51,5 +56,3 @@ post-activate {
|
||||
system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
|
||||
system "${prefix}/bin/update-mime-database ${prefix}/share/mime"
|
||||
}
|
||||
|
||||
livecheck.regex "/${name}/(\[a-zA-Z0-9\.\]+\.\[a-zA-Z0-9\.\]+)/"
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
Fix non-portable use of echo -n
|
||||
|
||||
https://github.com/dleidert/chemical-mime/pull/7
|
||||
--- acinclude.m4.orig 2007-01-02 21:58:02.000000000 -0600
|
||||
+++ acinclude.m4 2026-03-25 07:57:55.000000000 -0500
|
||||
@@ -36,8 +36,7 @@
|
||||
[More options, which should be used along with 'xmllint', like e.g. '--nonet'.]
|
||||
)
|
||||
AC_SUBST([XMLLINT_FLAGS])
|
||||
-echo -n "checking for optional xmllint options to use... "
|
||||
-echo $XMLLINT_FLAGS
|
||||
+printf "checking for optional xmllint options to use... %s\n" "$XMLLINT_FLAGS"
|
||||
]) # MP_PROG_XMLLINT
|
||||
|
||||
|
||||
@@ -68,7 +67,6 @@
|
||||
[More options, which should be used along with 'xsltproc', like e.g. '--nonet'.]
|
||||
)
|
||||
AC_SUBST([XSLTPROC_FLAGS])
|
||||
-echo -n "checking for optional xsltproc options to use... "
|
||||
-echo $XSLTPROC_FLAGS
|
||||
+printf "checking for optional xsltproc options to use... %s\n" "$XSLTPROC_FLAGS"
|
||||
]) # MP_PROG_XSLTPROC
|
||||
|
||||
@@ -87,7 +87,7 @@ autogen() {
|
||||
;;
|
||||
esac
|
||||
$INTLTOOLIZE -f $copyoption
|
||||
$ACLOCAL
|
||||
$ACLOCAL -I"$AUTOMAKE_PATH/share/gettext/m4"
|
||||
$AUTOMAKE --gnu -a $copyoption
|
||||
autogen_if_missing $1
|
||||
$AUTOCONF
|
||||
|
||||
Reference in New Issue
Block a user