View | Details | Raw Unified | Return to bug 70156
Collapse All | Expand All

(-)/home/clsung/porttools/files/patch-util_diff.in (+18 lines)
Line 0 Link Here
1
--- util_diff.in.orig	Sat Aug  7 06:10:14 2004
2
+++ util_diff.in	Sun Aug  8 16:26:26 2004
3
@@ -70,10 +70,12 @@
4
 			# -d <dir> have been specified
5
 			# it should be Ports tree location
6
 			CATEGORY="`make -V CATEGORIES | sed -E 's/^([^ ]+).*$/\1/'`"
7
-			PKGNAMEPREFIX="`make -V PKGNAMEPREFIX`"
8
+			PYTHON_SUFFIX="`make -V PYTHON_SUFFIX`"
9
+			RUBY_SUFFIX="`make -V RUBY_SUFFIX`"
10
+			PKGNAMEPREFIX="`make -V PKGNAMEPREFIX | sed -E "s,py${PYTHON_SUFFIX}-,py-," | sed -E "s,ruby${RUBY_SUFFIX}-,ruby-,"`"
11
 			PKGNAMESUFFIX="`make -V PKGNAMESUFFIX`"
12
-			PORTNAME="`make -V PORTNAME`"
13
-			ORIG_DIR="${DIFF_MODE}/${CATEGORY}/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}"
14
+			PORTNAME="${PKGNAMEPREFIX}`make -V PORTNAME`${PKGNAMESUFFIX}"
15
+			ORIG_DIR="${DIFF_MODE}/${CATEGORY}/${PORTNAME}"
16
 		else 
17
 			# -d <pattern> have been specified
18
 			# <pattern> is used to determine original port location

Return to bug 70156