diff options
author | 2011-06-26 14:31:22 +0300 | |
---|---|---|
committer | 2011-06-26 14:31:22 +0300 | |
commit | a336928ffdb744f1613272095e76a71f6ff5951c (patch) | |
tree | 64e3bcc57112460d87074a466013e5ab3252327e | |
parent | Update metadata. Add gksu rdepend (diff) | |
download | hwoarang-a336928ffdb744f1613272095e76a71f6ff5951c.tar.gz hwoarang-a336928ffdb744f1613272095e76a71f6ff5951c.tar.bz2 hwoarang-a336928ffdb744f1613272095e76a71f6ff5951c.zip |
Allow kdesu to be used if present
-rw-r--r-- | app-laptop/configure-trackpoint/Manifest | 2 | ||||
-rw-r--r-- | app-laptop/configure-trackpoint/configure-trackpoint-0.7.ebuild | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/app-laptop/configure-trackpoint/Manifest b/app-laptop/configure-trackpoint/Manifest index 2bc944e..07660a3 100644 --- a/app-laptop/configure-trackpoint/Manifest +++ b/app-laptop/configure-trackpoint/Manifest @@ -1,3 +1,3 @@ DIST configure-trackpoint-0.7.tar.gz 118439 RMD160 0b0fb86c50ff3e96fe29f226478d04eee888fee5 SHA1 249c7d0c24fa449dcab2e1a8e5c67f4d9d78985a SHA256 6c2dfbd0dd2b9df97dd1f2c468f91de34012d8138486be57cf9db6d792058bdf -EBUILD configure-trackpoint-0.7.ebuild 787 RMD160 9330ff56abe12654176ab9df834e1365c81308b3 SHA1 6acfd6f92379c09e698e7faf14a844a0df73ba71 SHA256 66c1a7db63f11d3ebbeb025d7a81fdecf525aac5976875094a338246435b58c1 +EBUILD configure-trackpoint-0.7.ebuild 986 RMD160 41fe17e9178b217f162a889db40b0de9e268ae4e SHA1 aac99fb973bd3c3995d04313137a90b2bf726013 SHA256 8ac3b0cf1f37fb82edd9891456685f4f104b8b83d562b5ac181840ccbb8ff5fc MISC metadata.xml 503 RMD160 88bf9b39606d0d3815088f7749705a8e207f875c SHA1 bf621f1fbaccd698d2c6ca902de733c1e8ac4a77 SHA256 b036135e97460b4a853c96a65d0864e32ba91c45e51b72fb6fa9b92b6d28dc52 diff --git a/app-laptop/configure-trackpoint/configure-trackpoint-0.7.ebuild b/app-laptop/configure-trackpoint/configure-trackpoint-0.7.ebuild index dfa7071..47424d5 100644 --- a/app-laptop/configure-trackpoint/configure-trackpoint-0.7.ebuild +++ b/app-laptop/configure-trackpoint/configure-trackpoint-0.7.ebuild @@ -16,12 +16,20 @@ IUSE="" RDEPEND="app-laptop/tp_smapi >=x11-libs/gtk+-2.2:2 - x11-libs/gksu + || ( x11-libs/gksu kde-base/kdesu ) >=gnome-base/libgnomeui-2.4 >=sys-devel/gettext-0.11" DEPEND="${RDEPEND} dev-util/pkgconfig" +src_prepare() { + if has_version kde-base/kdesu; then + sed -i -e "/^Exec/s:gksu:kdesu:" ${PN}.desktop \ + || die "Failed to replace gksu with kdesu" + fi + gnome2_src_prepare +} + src_configure() { G2CONF="--disable-dependency-tracking --disable-maintainer-mode" gnome2_src_configure |