wok view qoauth/receipt @ rev 11574

Replace all '-j 4' occurences by ''
author Antoine Bodin <gokhlayeh@slitaz.org>
date Mon Jan 02 23:06:19 2012 +0100 (2012-01-02)
parents 2f79d601d5bc
children 7d6089953592
line source
1 # SliTaz package receipt.
3 PACKAGE="qoauth"
4 VERSION="1.0"
5 CATEGORY="development"
6 SHORT_DESC="OAuth support for Qt applications."
7 MAINTAINER="ben@seawolfsanctuary.com"
8 DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \
9 libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \
10 libQtOpenGL libQtSql libQtWebkit"
11 BUILD_DEPENDS="qmake qca-dev xorg-libX11-dev dbus-dev Qt4-dev slitaz-toolchain"
12 TARBALL="$PACKAGE-$VERSION-src.tar.bz2"
13 WEB_SITE="http://github.com/ayoy/$PACKAGE"
14 WGET_URL="http://files.ayoy.net/$PACKAGE/release/$VERSION/src/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 # echo -n "Linking..."
20 # ln -s $src-src $src
21 # status
23 cd $src
25 qmake PREFIX="/usr"
26 # chmod +x configure
27 # ./configure \
28 # --prefix=/usr
30 patch -u <<ENDOFPATCH
31 --- Makefile
32 +++ Makefile
33 @@ -28,2 +28,1 @@
34 - sub-src \\
35 - sub-tests
36 + sub-src
37 ENDOFPATCH
39 status
41 patch -u <<ENDOFPATCH
42 --- Makefile
43 +++ Makefile
44 @@ -24,8 +24,7 @@
45 MOVE = mv -f
46 CHK_DIR_EXISTS= test -d
47 MKDIR = mkdir -p
48 -SUBTARGETS = \\
49 - sub-src
50 +SUBTARGETS = sub-src
52 src/\$(MAKEFILE):
53 @\$(CHK_DIR_EXISTS) src/ || \$(MKDIR) src/
54 @@ -140,16 +139,16 @@
55 qmake: qmake_all FORCE
56 @\$(QMAKE) -unix PREFIX=/usr -o Makefile qoauth.pro
58 -qmake_all: sub-src-qmake_all sub-tests-qmake_all FORCE
59 +qmake_all: sub-src-qmake_all FORCE
61 -make_default: sub-src-make_default-ordered sub-tests-make_default-ordered FORCE
62 -make_first: sub-src-make_first-ordered sub-tests-make_first-ordered FORCE
63 -all: sub-src-all-ordered sub-tests-all-ordered FORCE
64 -clean: sub-src-clean-ordered sub-tests-clean-ordered FORCE
65 -distclean: sub-src-distclean-ordered sub-tests-distclean-ordered FORCE
66 +make_default: sub-src-make_default-ordered FORCE
67 +make_first: sub-src-make_first-ordered FORCE
68 +all: sub-src-all-ordered FORCE
69 +clean: sub-src-clean-ordered FORCE
70 +distclean: sub-src-distclean-ordered FORCE
71 -\$(DEL_FILE) Makefile
72 -install_subtargets: sub-src-install_subtargets-ordered sub-tests-install_subtargets-ordered FORCE
73 -uninstall_subtargets: sub-src-uninstall_subtargets-ordered sub-tests-uninstall_subtargets-ordered FORCE
74 +install_subtargets: sub-src-install_subtargets-ordered FORCE
75 +uninstall_subtargets: sub-src-uninstall_subtargets-ordered FORCE
77 check: sub-tests
78 ( cd tests/ut_interface && ./ut_interface ) && ( cd tests/ft_interface && ./ft_interface )
79 ENDOFPATCH
81 status
83 if [ -f /usr/include/QtOAuth ] || [ -d /usr/include/QtOAuth ] ; then
84 echo -n "Removing QtOAuth placeholder... "
85 rm -rf /usr/include/QtOAuth/
86 status && echo
87 fi
89 make $MAKEFLAGS && make DESTDIR=$_pkg install
90 }
92 # Rules to gen a SliTaz package suitable for Tazpkg.
93 genpkg_rules()
94 {
95 mkdir -p $fs/usr
96 for DIRECTORY in lib include ; do
97 cp -a $src/$DIRECTORY $fs/usr
98 done
99 cp $src/src/*.h $fs/usr/include
101 mv $fs/usr/include/QtOAuth $fs/usr/include/QtOAuth.bak
102 mkdir $fs/usr/include/QtOAuth/
103 mv $fs/usr/include/interface.h $fs/usr/include/QtOAuth/interface.h
104 cp $fs/usr/include/QtOAuth/interface.h $fs/usr/include/interface.h
105 mv $fs/usr/include/QtOAuth.bak $fs/usr/include/QtOAuth/QtOAuth
107 mkdir -p $fs/usr/share/qt/mkspecs/features && \
108 cp $src/oauth.prf $fs/usr/share/qt/mkspecs/features/oauth.prf
110 # Copy .desktop file:
111 # cp -a $WOK/$PACKAGE/stuff/* $fs/usr
112 }
114 pre_install()
115 {
116 if [ -f /usr/include/QtOAuth ] || [ -d /usr/include/QtOAuth ] ; then
117 echo -n "Removing QtOAuth placeholder... "
118 rm -rf /usr/include/QtOAuth/
119 status && echo
120 fi
121 }