From: Chris White <chriswhite@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: kde-theme.py (formerly [gentoo-dev] intention for kde-themes eclass)
Date: Wed, 15 Jun 2005 10:06:30 +0900 [thread overview]
Message-ID: <20050615100630.79c3a4cd@localhost> (raw)
In-Reply-To: <20050614193351.79655146@localhost>
[-- Attachment #1: Type: text/plain, Size: 2511 bytes --]
Ok, so plans have changed. Now I've made a nice little script called kde-theme.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 handling. 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 decorations (it may handle more, but that's about what I've tested so far)
2) the program assumes
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 will 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 indow decorations page (like from here for example):
http://www.kde-look.org/content/show.php?content=21107
4) It downloads the file into a directory called .temp_directory, which must 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 there). I plan on adding some kind of download library later on to take care of this.
6) it checks the filename against a list of regex's. This tells it what type of file it's dealing with. By doing so, I can add support for rpm/deb/other 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 ebuild 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
[-- Attachment #2: Type: application/pgp-signature, Size: 200 bytes --]
next prev parent reply other threads:[~2005-06-14 16:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-14 10:33 [gentoo-dev] intention for kde-themes eclass Chris White
2005-06-14 2:18 ` Diego 'Flameeyes' Pettenò
2005-06-14 2:19 ` Brian Jackson
2005-06-14 12:04 ` Gregorio Guidi
2005-06-14 4:57 ` Shyam Mani
2005-06-14 9:22 ` Michael Cummings
2005-06-14 9:49 ` Diego 'Flameeyes' Pettenò
2005-06-15 1:06 ` Chris White [this message]
2005-06-14 21:39 ` kde-theme.py (formerly [gentoo-dev] intention for kde-themes eclass) Paul de Vrieze
2005-06-15 13:57 ` Chris White
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050615100630.79c3a4cd@localhost \
--to=chriswhite@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox