Magellan Linux

Annotation of /branches/magellan-next/extras/kdebindings4/kdebindings4-4.5.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7222 - (hide annotations) (download)
Fri Oct 8 12:50:56 2010 UTC (13 years, 8 months ago) by niro
File size: 2890 byte(s)
auto added: ver bump to 4.5.1-r1
1 niro 7222 # $Id: kdebindings4-4.4.2-r1.smage2 5184 2010-04-06 10:39:37Z niro $
2    
3     PNAME="kdebindings4"
4     PVER="4.5.1"
5     PBUILD="r1"
6    
7     STATE="unstable"
8    
9     SDEPEND="== kde-base/kdelibs4-${PVER}
10     == kde-base/kdepimlibs4-${PVER}
11     == kde-base/kdebase4-workspace-${PVER}
12     == kde-base/kdepim4-runtime-${PVER}
13     >= kde-base/qimageblitz-0.0.6
14     >= virtual/phonon
15     >= dev-lang/python-2.7
16     >= dev-lang/ruby-1.9
17     >= dev-python/pyqt4-4.7.7
18     >= dev-python/qscintilla-qt4-2.4
19     >= dev-libs/soprano-2.5
20     >= dev-libs/shared-desktop-ontologies-0.5
21     >= app-office/akonadi-1.4
22     == kde-base/kdegraphics4-okular-${PVER}"
23     #>= dev-lang/perl-5.12
24     #>= virtual/java-jdk
25    
26     SPLIT_PACKAGES="${PNAME}-python
27     ${PNAME}-smoke
28     ${PNAME}-ruby"
29     # ${PNAME}-csharp
30    
31     # pull in kde4 as last to get kde's {pre,post}install {pre,post}remove
32     sminclude python perl kde4-split
33    
34     UP2DATE="updatecmd http://www.kde.org/download/ | grep ${PNAME/4/} | sed -n '1 p' | sed 's/.*-\([^ ]*\) .*/\1/'"
35    
36     # split_info_kdebindings4-csharp()
37     # {
38     # DESCRIPTION="KDE4 bindings for mono."
39     # DEPEND=">= dev-lang/mono-1
40     # == kde-base/kdebindings4-mono-${PVER}"
41     # }
42    
43     split_info_kdebindings4-python()
44     {
45     DESCRIPTION="KDE4 Kross scripting framework: Python interpreter."
46     DEPEND="== kde-base/kdepimlibs4-${PVER}
47     >= dev-lang/python-2.6
48     >= dev-python/pyqt4-4.7.7"
49     }
50    
51     split_info_kdebindings4-ruby()
52     {
53     DESCRIPTION="KDE4 bindings for ruby"
54     DEPEND="== kde-base/kdebindings4-smoke-${PVER}
55     >= dev-lang/ruby-1.9"
56     }
57    
58     split_info_kdebindings4-smoke()
59     {
60     DESCRIPTION="Language independent library for Qt4 and KDE4 bindings."
61     DEPEND="== kde-base/kdelibs4-${PVER}
62     == kde-base/kdepimlibs4-${PVER}
63     == kde-base/kdepim4-runtime-${PVER}
64     >= kde-base/qimageblitz-0.0.6
65     >= dev-python/qscintilla-qt4-2.4
66     >= app-office/akonadi-1.4
67     >= virtual/phonon
68     >= dev-libs/soprano-2.4.1
69     >= dev-libs/shared-desktop-ontologies-0.5
70     == kde-base/kdegraphics4-okular-${PVER}"
71     # no java support atm
72     #>= virtual/java-jdk
73     }
74    
75     src_prepare()
76     {
77     munpack ${SRCFILE} || die
78     cd ${SRCDIR}
79    
80     local rubyver=$(ruby --version | cut -d' ' -f2 | sed 's:\(.*\)p.*:\1:')
81     local rubyarch=$(ruby --version | cut -d' ' -f6 | sed 's:\[::;s:\]::')
82     local rubypath="/usr/include/ruby-${rubyver}/${rubyarch}"
83    
84     # fix ruby includes
85     find ${SRCDIR}/ruby -name CMakeLists.txt \
86     -exec sed -i "s|\${RUBY_INCLUDE_PATH}|\${RUBY_INCLUDE_PATH} ${rubypath}|" {} \; || die
87     }
88    
89     src_compile()
90     {
91     cd ${SRCDIR}
92    
93     # sip/pyqt/pykde built separately, not here
94     kde4_configure \
95     $(cmake_with OpenGL) \
96     $(cmake_with KdepimLibs) \
97     $(cmake_with Nepomuk) \
98     $(cmake_with Phonon) \
99     $(cmake_with QScintilla) \
100     $(cmake_with Soprano) \
101     $(cmake_without PolkitQT) \
102     \
103     $(cmake_build_not csharp) \
104     $(cmake_build_not java) \
105     $(cmake_build_not php) \
106     $(cmake_build_not falcon) \
107     $(cmake_disable KROSSRUBY) \
108     || die
109     #$(cmake_build_not smoke) \
110     #$(cmake_build_not ruby) \
111    
112     # not parallel make safe
113     make || die
114     }