Ticket #29048: dcraw_9.07_Portfile.diff

File dcraw_9.07_Portfile.diff, 1.7 KB (added by denis.laplante@…, 14 years ago)

patch to dcraw Portfile using "port installed"

Line 
1diff -c /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/dcraw/Portfile.orig /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/dcraw/Portfile
2*** /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/dcraw/Portfile.orig       Sat Apr  2 12:30:16 2011
3--- /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/dcraw/Portfile    Thu Apr  7 10:38:59 2011
4***************
5*** 57,63 ****
6      if {[file exists ${prefix}/bin/ufraw]} {
7          ui_debug "ufraw is installed; determining version"
8          set ufraw_minimum_version 0.16
9!         set ufraw_installed_version [exec ${prefix}/bin/msgunfmt ${prefix}/share/locale/de/LC_MESSAGES/ufraw.mo | sed -E -n s/^.*Project-Id-Version:\ \(\[0-9.\]+\).*\$/\\1/p]
10          if {[rpm-vercomp ${ufraw_installed_version} ${ufraw_minimum_version}] < 0} {
11              ui_debug "ufraw ${ufraw_installed_version} is installed; needs to be deactivated first"
12              return -code error "Please deactivate your currently-installed ufraw port, then try again"
13--- 57,63 ----
14      if {[file exists ${prefix}/bin/ufraw]} {
15          ui_debug "ufraw is installed; determining version"
16          set ufraw_minimum_version 0.16
17!         set ufraw_installed_version [exec ${prefix}/bin/port installed ufraw | sed -n -e s/^.*@// -e s/_.*//]
18          if {[rpm-vercomp ${ufraw_installed_version} ${ufraw_minimum_version}] < 0} {
19              ui_debug "ufraw ${ufraw_installed_version} is installed; needs to be deactivated first"
20              return -code error "Please deactivate your currently-installed ufraw port, then try again"
21
22Diff finished.  Thu Apr  7 10:39:25 2011