-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[python] Use distutils to compile and install pygmi/pyxp.
- Loading branch information
Kris Maglione
committed
Jun 27, 2010
1 parent
a5ca791
commit c629223
Showing
15 changed files
with
203 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,53 @@ | ||
|
||
pkgname=wmii-hg | ||
pkgver=2740 | ||
pkgname=(wmii-hg pyxp-hg pygmi-hg) | ||
pkgver=2746 | ||
pkgrel=1 | ||
pkgdesc="The latest hg pull of wmii, a lightweight, dynamic window manager for X11" | ||
url="http://wmii.suckless.org" | ||
license=(MIT) | ||
arch=(i686 x86_64) | ||
depends=(libx11 libxinerama libxrandr) | ||
makedepends=(mercurial "libixp-hg>="$(sed -rn <mk/wmii.mk 's/.*IXP_NEEDAPI=([0-9]+).*/\1/p')) | ||
optdepends=("plan9port: for use of the alternative plan9port wmiirc" \ | ||
"python: for use of the alternative Python wmiirc" \ | ||
"ruby-rumai: for use of the alternative Ruby wmiirc" \ | ||
"libxft: for anti-aliased font support") | ||
provides=(wmii) | ||
conflicts=(wmii) | ||
makedepends=(mercurial python "libixp-hg>="$(sed -rn <mk/wmii.mk 's/.*IXP_NEEDAPI=([0-9]+).*/\1/p')) | ||
options=(!strip) | ||
source=() | ||
|
||
FORCE_VER=$(hg log -r . --template {rev}) | ||
|
||
build() | ||
{ | ||
_make() { | ||
cd $startdir | ||
flags=(PREFIX=/usr \ | ||
ETC=/etc \ | ||
DESTDIR="$pkgdir") | ||
make PREFIX=/usr \ | ||
PYPREFIX=--prefix=/usr \ | ||
ETC=/etc \ | ||
DESTDIR="$pkgdir" \ | ||
"$@" | ||
} | ||
|
||
build() { | ||
_make "${flags[@]}" || return 1 | ||
} | ||
|
||
make "${flags[@]}" || return 1 | ||
make "${flags[@]}" install || return 1 | ||
package_wmii-hg() { | ||
depends=(libx11 libxinerama libxrandr) | ||
optdepends=("plan9port: for use of the alternative plan9port wmiirc" \ | ||
"pygmi: for use of the alternative Python wmiirc" \ | ||
"ruby-rumai: for use of the alternative Ruby wmiirc" \ | ||
"libxft: for anti-aliased font support") | ||
provides=(wmii) | ||
conflicts=(wmii) | ||
_make install PYMODULES= || return 1 | ||
|
||
install -m644 -D ./debian/file/wmii.desktop "$pkgdir/etc/X11/sessions/wmii.desktop" | ||
install -m644 -D ./LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | ||
} | ||
|
||
package_pyxp-hg() { | ||
arch=(any) | ||
depends=(python) | ||
_make -C alternative_wmiircs/python pyclean pyxp.install | ||
} | ||
|
||
package_pygmi-hg() { | ||
arch=(any) | ||
depends=(pyxp-hg) | ||
_make -C alternative_wmiircs/python pyclean pygmi.install | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env python | ||
|
||
from distutils.core import setup | ||
|
||
setup(name='pygmi', | ||
version='0.2', | ||
description='Python wmii interaction library', | ||
author='Kris Maglione', | ||
author_email='maglione.k@gmail.com', | ||
url='http://wmii.suckless.org', | ||
packages=['pygmi'], | ||
license='MIT', | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env python | ||
|
||
from distutils.core import setup | ||
|
||
setup(name='pyxp', | ||
version='0.2', | ||
description='Python 9P client library', | ||
author='Kris Maglione', | ||
author_email='maglione.k@gmail.com', | ||
url='http://wmii.suckless.org', | ||
packages=['pyxp'], | ||
license='MIT', | ||
) | ||
|
Oops, something went wrong.