From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from [140.105.134.102] (helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.43)
	id 1DiEP8-0000Vn-6E
	for garchives@archives.gentoo.org; Tue, 14 Jun 2005 16:36:46 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j5EGZTRi015262;
	Tue, 14 Jun 2005 16:35:29 GMT
Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30])
	by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j5EGXE23027243
	for <gentoo-dev@lists.gentoo.org>; Tue, 14 Jun 2005 16:33:14 GMT
Received: from sls-ce5p321.hostitnow.com ([72.9.236.50])
	by smtp.gentoo.org with esmtp (Exim 4.43)
	id 1DiEML-0002lh-F4
	for gentoo-dev@lists.gentoo.org; Tue, 14 Jun 2005 16:33:53 +0000
Received: from c-67-181-38-200.hsd1.ca.comcast.net ([67.181.38.200] helo=localhost)
	by sls-ce5p321.hostitnow.com with esmtpa (Exim 4.50)
	id 1DiEMC-0002WW-U7
	for gentoo-dev@gentoo.org; Tue, 14 Jun 2005 11:33:45 -0500
Date: Wed, 15 Jun 2005 10:06:30 +0900
From: Chris White <chriswhite@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: kde-theme.py (formerly [gentoo-dev] intention for kde-themes
 eclass)
Message-ID: <20050615100630.79c3a4cd@localhost>
In-Reply-To: <20050614193351.79655146@localhost>
References: <20050614193351.79655146@localhost>
Organization: Gentoo
X-Mailer: Sylpheed-Claws 1.9.11 (GTK+ 2.6.7; i686-pc-linux-gnu)
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
Mime-Version: 1.0
Content-Type: multipart/signed;
 boundary=Signature_Wed__15_Jun_2005_10_06_30_+0900_.wqkZ3YiFRJ4mZqj;
 protocol="application/pgp-signature"; micalg=pgp-sha1
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - sls-ce5p321.hostitnow.com
X-AntiAbuse: Original Domain - gentoo.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - gentoo.org
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-Archives-Salt: 92ab6c73-b150-4c7e-905f-769765aacef6
X-Archives-Hash: cbf69913d30d5fe35ee2bc76cfc3ba96

--Signature_Wed__15_Jun_2005_10_06_30_+0900_.wqkZ3YiFRJ4mZqj
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Ok, so plans have changed.  Now I've made a nice little script called kde-t=
heme.py, which I haven't released yet because the code needs more effecient=
 "what on earth are you trying to make me do.. I can't do that!" error hand=
ling.  Here's the just of it:

http://dev.gentoo.org/~chriswhite/kde-theme.log

so here's how it works:

1) Check out kde-look.org and select any kde 3.2+ style/theme or window dec=
orations (it may handle more, but that's about what I've tested so far)
2) the program assumes=20
	a) it's a 3.2+ style/theme
	b) you're using kde 3.4
	c) the file is GPL
(all that will change btw.. I plan on working on some html parsing that wil=
l parse information straight off the page on license and kde version)
3) so you give it a download url for the source from the theme/style or w i=
ndow decorations page (like from here for example):

	http://www.kde-look.org/content/show.php?content=3D21107

4) It downloads the file into a directory called .temp_directory, which mus=
t be empty (it will yell if it's not)
5) it does a directory listing to get the name of the source archive (yes, =
it must be empty because it has to be the only file there, since currently =
wget is handling the download and kde-theme.py has no true way of handling =
that saving doing a directory listing where the download is the only file t=
here).  I plan on adding some kind of download library later on to take car=
e of this.
6) it checks the filename against a list of regex's.  This tells it what ty=
pe of file it's dealing with.  By doing so, I can add support for rpm/deb/o=
ther strange files by simply updating the regex list.  Right now it handles=
 the following:

	#-packagename-version.extension (kde-look.org hosted source archive)
	packagename-version.extension (standard source archive)

7) it pulls packagename and ${P} by packagename+version
8) it creates /usr/portage/x11-themes/[packagename]/files
(I plan to work with PORTDIR_OVERLAY later on so files don't get removed on=
 sync)
9) then it writes the ebuild, also if you use the '-a' option, you can set =
the arch it uses for KEYWORDS, otherwise it assume x86 (yes.. I know other =
archs exist ;p).  Keywording is done on an ~arch basis since it uses kde 3.=
4 anyways.  Also, if '-d' option is set (don't merge), the newly created eb=
uild will not be merged.
10) ebuild [file] digest is run to create the manifest
11) the file is emerged with --oneshot to prevent world udpates from going =
screwy

viola, that's all there is too it.
Chris White

--Signature_Wed__15_Jun_2005_10_06_30_+0900_.wqkZ3YiFRJ4mZqj
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.9.15 (GNU/Linux)
Comment: 

iD8DBQFCr38cFdQwWVoAgN4RAtX0AKDpm+lPAsAUkCYAZLxcutXlkgjq6QCgjf7B
wrs0DfexEXxnD+Z3UDRZNoc=
=C+3A
-----END PGP SIGNATURE-----

--Signature_Wed__15_Jun_2005_10_06_30_+0900_.wqkZ3YiFRJ4mZqj--
-- 
gentoo-dev@gentoo.org mailing list