1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

sysutils/dar: Use alternate sed argument to unbreak DragonFly

The new version of dar uses the gnu sed -r switch which is not recognized
by DragonFly's BSD sed.  Switch this to the equivalent -E switch so both
FreeBSD and DragonFly are happy.

Approved by:	general blanket
This commit is contained in:
John Marino 2014-06-21 08:19:04 +00:00
parent 1c56a071cb
commit 70bd6b07f2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358676

View File

@ -0,0 +1,11 @@
--- src/libdar/Makefile.in.orig 2014-06-15 16:44:07.000000000 +0000
+++ src/libdar/Makefile.in
@@ -337,7 +337,7 @@ AM_LDFLAGS = @LTLIBINTL@ $(LD_PROF)
lib_LTLIBRARIES = $(MYLIB)
LIBDAR_MAJOR = `grep LIBDAR_COMPILE_TIME_MAJOR libdar.hpp | cut -f 2 -d "=" | cut -f 1 -d ';' | sed -e 's% %%g'`
LIBDAR_MEDIUM = `grep LIBDAR_COMPILE_TIME_MEDIUM libdar.hpp | cut -f 2 -d "=" | cut -f 1 -d ';' | sed -e 's% %%g'`
-LIBDAR_MEDIUM_000 = `grep LIBDAR_COMPILE_TIME_MEDIUM libdar.hpp | cut -f 2 -d "=" | cut -f 1 -d ';' | sed -r -e 's% %%g' -e 's%([^0-9]|^)([0-9]{1})([^0-9]|$$)%0\2%' -e 's%([^0-9]|^)([0-9]{2})([^0-9]|$$)%0\2%'`
+LIBDAR_MEDIUM_000 = `grep LIBDAR_COMPILE_TIME_MEDIUM libdar.hpp | cut -f 2 -d "=" | cut -f 1 -d ';' | sed -E -e 's% %%g' -e 's%([^0-9]|^)([0-9]{1})([^0-9]|$$)%0\2%' -e 's%([^0-9]|^)([0-9]{2})([^0-9]|$$)%0\2%'`
LIBDAR_MINOR = `grep LIBDAR_COMPILE_TIME_MINOR libdar.hpp | cut -f 2 -d "=" | cut -f 1 -d ';' | sed -e 's% %%g'`
LIBDAR_LIBTOOL_CURRENT = $(LIBDAR_MAJOR)$(LIBDAR_MEDIUM_000)
LIBDAR_LIBTOOL_REVISION = $(LIBDAR_MINOR)