Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5259 - conectiva-crystal-3.1_beta37-r1.ebuild
Summary: conectiva-crystal-3.1_beta37-r1.ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Dan Armak (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-19 14:52 UTC by Daniel Mettler
Modified: 2002-07-29 11:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
new ebuild (conectiva-crystal-3.1_beta37-r1.ebuild,2.51 KB, text/plain)
2002-07-19 14:54 UTC, Daniel Mettler
Details
conectiva-crystal-3.1_beta37-r2.ebuild (replaces the conectiva-crystal-3.1_beta37-r1.ebuild attachment) (conectiva-crystal-3.1_beta37-r2.ebuild,2.55 KB, text/plain)
2002-07-21 09:47 UTC, Daniel Mettler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Mettler 2002-07-19 14:52:20 UTC
dan, as you wrote that KDE3DIR etc. variables will be deprecated soon i       
commented them out for my gentoo 1.3b test drive.   
   
now, without these variables set, the conectiva-crystal-3.1_beta37.ebuild will    
install into the root tree (/share/icons/Crystal) instead of the kde base    
directories.   
   
to solve this, i've made an ebuild which should work both for old _and_ new   
gentoo versions. that's how it works: if available, it uses $KDE2DIR and   
$KDE3DIR variables. if not available, it parses and uses $KDEDIRS. if it does   
not find any of these variables or if it does not find any of the specified 
directories it aborts (see the source for details).   
  
disclaimer: i do not know about the variables you intend to use instead of   
$KDExDIR in the future (perhaps parse KDEDIRS too?). thus there might be an 
even more elegant solution than this one ;)   
  
plse see the attachment for the ebuild.  
  
rgds  
  
dan    
    
ps. imo it should work for ppc too (though i only tested it for i86)
Comment 1 Daniel Mettler 2002-07-19 14:54:05 UTC
Created attachment 2399 [details]
new ebuild
Comment 2 Daniel Mettler 2002-07-21 09:47:46 UTC
Created attachment 2433 [details]
conectiva-crystal-3.1_beta37-r2.ebuild (replaces the conectiva-crystal-3.1_beta37-r1.ebuild attachment)

includes changes to make the ebuild pass lintool (there is still a warning
about the malformed cvs header of course):

--- conectiva-crystal-3.1_beta37-r1.ebuild	Sun Jul 21 16:40:24 2002
+++ conectiva-crystal-3.1_beta37-r2.ebuild	Sun Jul 21 16:32:48 2002
@@ -10,6 +10,9 @@
 SLOT="0"
 LICENSE="as-is"

+DEPEND="kde-base/kde"
+RDEPEND=${DEPEND}
+
 src_compile() {

	return 1;
@@ -18,7 +21,7 @@

 src_install(){

-	successful="false";						       
					# Success is defined as at least one
installation of the icon theme.
+	successful="false";						       
				# Success is defined as at least one
installation of the icon theme.

	cd ${S}
Comment 3 Dan Armak (RETIRED) gentoo-dev 2002-07-29 10:18:15 UTC
I'm committed an -r1 that uses eclasses to determine where to install. 
kde-functions.eclass passes $KDEDIR and $PREFIX to an ebuild, and the ebuild 
uses kdelibs from $KDEDIR and installs in $PREFIX. 
Also btw kde 3.1 tree includes this icon theme. 
Comment 4 Daniel Mettler 2002-07-29 11:26:30 UTC
o'right. i didn't know it will be included with 3.1 and using your eclasses is 
certainly a good idea.