Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eubild kde-misc/chakra-gtk-config
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
k4misiek
n00b
n00b


Joined: 06 Jul 2007
Posts: 50
Location: Poland

PostPosted: Thu Feb 03, 2011 10:06 pm    Post subject: eubild kde-misc/chakra-gtk-config Reply with quote

I was trying to get Chakra GTK Config work in KDE4.4 and I create below ebuild. It's compiling and installing but I don't have any options in systemsettings.

What am I doing wrong?
Code:

gen2 k4misiek # cat /usr/local/portage/kde-misc/chakra-gtk-config/chakra-gtk-config-1.2.ebuild
# Copyright 1999-2008 Gentoo Foundation   
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit kde4-base

DESCRIPTION="Chakra Gtk Config it is a KCM for set the look&feel of your Gtk apps using the KDE systemsettings. written from scratch in Qt, you can set the widget, the icon themes and the font family."
HOMEPAGE="http://kde-apps.org/content/show.php/Chakra+Gtk+Config+-+KCM?content=137496"
LICENSE="GPL"

KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
SLOT="0"
SRC_URI="http://chakra-project.org/sources/gtk-integration/chakra-gtk-config-${PV}.tar.gz"

DEPEND="kde-base/kdelibs"

S="${WORKDIR}/chakra-gtk-config-${PV}"

Code:

gen2 k4misiek # equery f kde-misc/chakra-gtk-config
[ Searching for packages matching kde-misc/chakra-gtk-config... ]
* Contents of kde-misc/chakra-gtk-config-1.2:
/usr
/usr/lib64
/usr/lib64/kde4
/usr/lib64/kde4/kcm_cgc.so
/usr/share
/usr/share/doc
/usr/share/doc/chakra-gtk-config-1.2
/usr/share/doc/chakra-gtk-config-1.2/README.bz2
/usr/share/kde4
/usr/share/kde4/services
/usr/share/kde4/services/chakra-gtk-config.desktop
/usr/share/locale
/usr/share/locale/ca
/usr/share/locale/ca/LC_MESSAGES
/usr/share/locale/ca/LC_MESSAGES/kcm_cgc.mo
/usr/share/locale/es
/usr/share/locale/es/LC_MESSAGES
/usr/share/locale/es/LC_MESSAGES/kcm_cgc.mo
/usr/share/locale/gl
/usr/share/locale/gl/LC_MESSAGES
/usr/share/locale/gl/LC_MESSAGES/kcm_cgc.mo
/usr/share/locale/it
/usr/share/locale/it/LC_MESSAGES
/usr/share/locale/it/LC_MESSAGES/kcm_cgc.mo

_________________
You are registered as user #464141 with the Linux Counter
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1129
Location: Romania

PostPosted: Fri Feb 04, 2011 6:54 am    Post subject: Reply with quote

Add "Settings" to destop file:
Code:
Categories=Settings;Qt;KDE;X-KDE-settings-looknfeel;

You can also open it with:
Code:
kcmshell4 chakra-gtk-config
Back to top
View user's profile Send private message
k4misiek
n00b
n00b


Joined: 06 Jul 2007
Posts: 50
Location: Poland

PostPosted: Fri Feb 04, 2011 10:27 am    Post subject: Reply with quote

sebaro wrote:
Add "Settings" to destop file:
Code:
Categories=Settings;Qt;KDE;X-KDE-settings-looknfeel;


Still nothing.
Maybe incompatible with KDE4.4?

I can also run from KDE menu.

BTW: chakra-gtk-config modifies .gtkrc-2.0 so to get it work fine we have to create symlink to .gtkrc-2.0-kde4
Code:

ln -s .gtkrc-2.0 .gtkrc-2.0-kde4

_________________
You are registered as user #464141 with the Linux Counter
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1129
Location: Romania

PostPosted: Fri Feb 04, 2011 3:43 pm    Post subject: Reply with quote

I also use kde4.4 apps. I did emerge your ebuild, and it didn't show up in systemsettings, then I edit the desktop file to look like the other services.
I also changed:
Code:
X-KDE-System-Settings-Parent-Category=appearance
Back to top
View user's profile Send private message
k4misiek
n00b
n00b


Joined: 06 Jul 2007
Posts: 50
Location: Poland

PostPosted: Fri Feb 04, 2011 5:14 pm    Post subject: Reply with quote

sebaro wrote:
I also use kde4.4 apps. I did emerge your ebuild, and it didn't show up in systemsettings, then I edit the desktop file to look like the other services.
I also changed:
Code:
X-KDE-System-Settings-Parent-Category=appearance

Cool! Now it works fine.
Code:

X-KDE-System-Settings-Parent-Category=appearance
#X-KDE-System-Settings-Parent-Category=application-appearance


I thinking how to create a patch file for chakra-gtk-config.desktop.

Some advice how I can create patch ?
_________________
You are registered as user #464141 with the Linux Counter
Back to top
View user's profile Send private message
manutortosa
n00b
n00b


Joined: 04 Feb 2011
Posts: 1

PostPosted: Fri Feb 04, 2011 9:48 pm    Post subject: Some fixes Reply with quote

Hi, unfortunatelly KDE 4.6 changed the systemsettings categories layout, but we already fixed the symlinking adding it to the code. Thanks for your ebuild.

Manuel Tortosa and the team behind Chakra.
Back to top
View user's profile Send private message
k4misiek
n00b
n00b


Joined: 06 Jul 2007
Posts: 50
Location: Poland

PostPosted: Sat Feb 05, 2011 12:31 am    Post subject: Re: Some fixes Reply with quote

manutortosa wrote:
Hi, unfortunatelly KDE 4.6 changed the systemsettings categories layout, but we already fixed the symlinking adding it to the code. Thanks for your ebuild.

Manuel Tortosa and the team behind Chakra.

Hi. Thanks for your great app.

KDE 4.6 changed the systemsettings categories layout so it's impossible to get working for older KDE4 ?
Code:

X-KDE-System-Settings-Parent-Category=appearance //OK for KDE4.4
#X-KDE-System-Settings-Parent-Category=application-appearance


I create ebuild for 1.3 at Gentoo bugzilla
_________________
You are registered as user #464141 with the Linux Counter
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1129
Location: Romania

PostPosted: Sat Feb 05, 2011 8:16 am    Post subject: Reply with quote

First I suggest you use the name "kde-misc/kcm_cgc".
If layout for systemsettings is different for 4.6 than < 4.6 you can add to the ebuild:
Code:

src_prepare() {
        if [[ $(kde4-config --version | grep KDE | cut -d "." -f 2) -lt 6 ]] ; then
             sed -i \
                   -e "s/Parent-Category[^ ]*/Parent-Category=appearance/" \
                   chakra-gtk-config.desktop
        fi

   kde4-base_src_prepare
}
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Sun Feb 06, 2011 1:13 pm    Post subject: Reply with quote

Moved from Desktop Environments to Unsupported Software, overlay ebuilds are not officially supported.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
k4misiek
n00b
n00b


Joined: 06 Jul 2007
Posts: 50
Location: Poland

PostPosted: Sun Feb 06, 2011 2:05 pm    Post subject: Reply with quote

sebaro wrote:
First I suggest you use the name "kde-misc/kcm_cgc".
If layout for systemsettings is different for 4.6 than < 4.6 you can add to the ebuild:
Code:

src_prepare() {
        if [[ $(kde4-config --version | grep KDE | cut -d "." -f 2) -lt 6 ]] ; then
             sed -i \
                   -e "s/Parent-Category[^ ]*/Parent-Category=appearance/" \
                   chakra-gtk-config.desktop
        fi

   kde4-base_src_prepare
}


I have to learn cut, sed;-) because it don't work for me and I don't know why :(.
_________________
You are registered as user #464141 with the Linux Counter
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1129
Location: Romania

PostPosted: Sun Feb 06, 2011 4:01 pm    Post subject: Reply with quote

If it's a sed warning look for spaces after "\".
This should work, works for me:
Code:
src_prepare() {
   if [[ $(kde4-config --version | grep KDE | cut -d "." -f 2) -lt 6 ]] ; then
      einfo "KDE version < 4.6. Altering desktop file..."
      sed -i \
         -e "s/Parent-Category[^ ]*/Parent-Category=appearance/" \
         chakra-gtk-config.desktop && einfo "completed." || ewarn "failed."
   fi
}

Remove spaces at the end of lines.
Back to top
View user's profile Send private message
k4misiek
n00b
n00b


Joined: 06 Jul 2007
Posts: 50
Location: Poland

PostPosted: Sun Feb 06, 2011 9:09 pm    Post subject: Reply with quote

sebaro wrote:
If it's a sed warning look for spaces after "\".
This should work, works for me:
Code:
src_prepare() {
   if [[ $(kde4-config --version | grep KDE | cut -d "." -f 2) -lt 6 ]] ; then
      einfo "KDE version < 4.6. Altering desktop file..."
      sed -i \
         -e "s/Parent-Category[^ ]*/Parent-Category=appearance/" \
         chakra-gtk-config.desktop && einfo "completed." || ewarn "failed."
   fi
}

Remove spaces at the end of lines.


Code:

 * KDE version < 4.6. Altering desktop file...
sed: brak plików wejściowych (no input files)
/var/tmp/portage/kde-misc/kcm_cgc-1.3/temp/environment: line 3910: -e: nie znaleziono polecenia (command not found)
/var/tmp/portage/kde-misc/kcm_cgc-1.3/temp/environment: line 3911: chakra-gtk-config.desktop: nie znaleziono polecenia (command not found)


Something's wrong..
Code:

gen2 kcm_cgc # cat kcm_cgc-1.3.ebuild
# Copyright 1999-2008 Gentoo Foundation   
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit kde4-base

src_prepare() {
   if [[ $(kde4-config --version | grep KDE | cut -d "." -f 2) -lt 6 ]] ; then
      einfo "KDE version < 4.6. Altering desktop file..."
      sed -i \
         -e "s/Parent-Category[^ ]*/Parent-Category=appearance/" \
         chakra-gtk-config.desktop && einfo "completed." || ewarn "failed."
   fi
}

#src_prepare() {
#        if [[ $(kde4-config --version | grep KDE | cut -d "." -f 2) -lt 6 ]] ; then
#             sed -i \
#                   -e "s/Parent-Category[^ ]*/Parent-Category=appearance/" \
#                   chakra-gtk-config.desktop
#        fi
#
#   kde4-base_src_prepare
#}


DESCRIPTION="Chakra Gtk Config it is a KCM for set the look&feel of your Gtk apps using the KDE systemsettings. written from scratch in Qt, you can set the widget, the icon themes and the font family."
HOMEPAGE="http://kde-apps.org/content/show.php/Chakra+Gtk+Config+-+KCM?content=137496"
LICENSE="GPL"

KEYWORDS="~amd64 ~x86"
SLOT="0"
SRC_URI="http://chakra-project.org/sources/gtk-integration/chakra-gtk-config-${PV}.tar.gz"

DEPEND="kde-base/kdelibs"

S="${WORKDIR}/chakra-gtk-config-${PV}"


_________________
You are registered as user #464141 with the Linux Counter
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1129
Location: Romania

PostPosted: Mon Feb 07, 2011 6:09 am    Post subject: Reply with quote

Put the code at the end of the ebuild and remove spaces at the end of each line.
Code:
sed -i \no space here
              -e ... \no space here
Back to top
View user's profile Send private message
k4misiek
n00b
n00b


Joined: 06 Jul 2007
Posts: 50
Location: Poland

PostPosted: Tue Feb 08, 2011 10:23 am    Post subject: Reply with quote

sebaro wrote:
Put the code at the end of the ebuild and remove spaces at the end of each line.
Code:
sed -i \no space here
              -e ... \no space here


Thanks! Working ebuild here.
_________________
You are registered as user #464141 with the Linux Counter
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum