/[gentoo-x86]/eclass/kde-patch.eclass
Gentoo

Contents of /eclass/kde-patch.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Jan 30 19:21:56 2003 UTC (11 years, 9 months ago) by danarmak
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
add a kde_src_unpack(). it calls base_src_unpack (passing on all section parameters) then fixes the \'languageChange undeclared\' bug in a centralized manner by touching all .ui files. this change should be transparent to ebuilds; i will be changing those that call base_src_unpack to use kde_src_unpack so that they can make use of the new fix.

1 # Copyright 1999-2000 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # Author Dan Armak <danarmak@gentoo.org>
4 # $Header: /home/cvsroot/gentoo-x86/eclass/kde-patch.eclass,v 1.4 2002/10/25 19:55:52 vapier Exp $
5 # This applies homemade patches from the tarball to the date specified.
6
7 ECLASS=kde-patch
8 INHERITED="$INHERITED $ECLASS"
9
10 debug-print "Entering eclass $ECLASS"
11
12 # ${PV} comes in the form of x.y.z.YYYYMMDD where x.y.z is the original (unpatched) version
13 # and YYYYMMDD is the patch's datestamp. The patch lives on a gentoo mirror and is called
14 # ${PN}-x.y.z-YYYYMMDD.diff. We figure out automagically the two parts of the current $PV.
15
16 # I'm not that good at regexps etc., so I emulate std coding practices
17
18 OLDIFS="$IFS" # backup so that we don't distort future loops
19 IFS="." # separator string that determines the breakup of a string by bash's "for x in; do; done"
20
21 for DATE in $PV
22 do
23 # if not last component of separated $PV
24 if [ ! "${ORIGPV}.${DATE}" == "${PV}" ]; then
25 [ -n "$ORIGPV" ] && ORIGPV="${ORIGPV}.${DATE}" || ORIGPV="$DATE" # don't add a leading dot
26 fi
27 done
28
29 IFS="$OLDIFS" #restore
30
31 # now $ORIGPV and $DATE should have the right values
32 debug-print "$ECLASS: ORIGPV=$ORIGPV, DATE=$DATE"
33
34 PATCH="${PN}-${ORIGPV}-${DATE}.diff"
35 SRC_URI="$SRC_URI mirror://gentoo/${PATCH}"
36
37 # for the new base_src_unpack functionality
38 PATCHES="$PATCHES ${DISTDIR}/${PATCH}"
39
40 # Set the right Pv for correct handling of the main sources. This is why this eclass
41 # should be sourced before all others.
42 PV="$ORIGPV"
43 [ "$PR" != "r0" ] && PVR="$PN-$PV-$PR" || PVR="$PV"
44 P="$PN-$PV"

  ViewVC Help
Powered by ViewVC 1.1.20