1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-19 19:50:31 -04:00
ports/devel/mate-common/files/patch-macros_mate-autogen
Koop Mast 0a7668c133 Update the mate desktop to 1.18.
* The MATE DE is now GTK+3 based
* mate-calc has come back.
* New USE_MATE=mixer macro

* Add license
* Review dependancies
* Swich to USES=localbase
* atril/eom options reworked into option helper

Thanks to Eric Turgeon for submitting the bulk of this MATE update.

Obtained from:	gnome devel repo
2017-07-04 11:44:30 +00:00

35 lines
1.4 KiB
Text

https://bugs.gentoo.org/show_bug.cgi?id=427432
https://bugzilla.gnome.org/show_bug.cgi?id=680363
--- macros/mate-autogen.orig 2016-09-17 07:36:20.000000000 +0200
+++ macros/mate-autogen 2016-11-23 20:00:33.508805000 +0100
@@ -94,6 +94,7 @@
vc_min_version=$4
vc_source=$5
vc_status=1
+ vc_option="--version"
local ${vc_variable}_VERSION
vc_checkprog=`eval echo "\\$$vc_variable"`
@@ -102,11 +103,18 @@
return 0
fi
- printbold "checking for $vc_package >= $vc_min_version..."
+ # The most reliable way to check pkg-config version is to query the actual
+ # virtual
+ # pkg-config package entry's modversion. This works in all known
+ # implementations.
+ if test "x$vc_package" = "xpkg-config"; then
+ vc_option="--modversion pkg-config"
+ fi
+ printbold "checking for $vc_package $vc_comparator $vc_min_version..."
for vc_checkprog in $vc_checkprogs; do
echo $ECHO_N " testing $vc_checkprog... " $ECHO_C
- if $vc_checkprog --version < /dev/null > /dev/null 2>&1; then
- vc_actual_version=`$vc_checkprog --version | head -n 1 | \
+ if $vc_checkprog $vc_option < /dev/null > /dev/null 2>&1; then
+ vc_actual_version=`$vc_checkprog $vc_option | head -n 1 | \
sed 's/^.*[ ]\([0-9.]*[a-z]*\).*$/\1/'`
if compare_versions $vc_min_version $vc_actual_version; then
echo "found $vc_actual_version"