wok-current view qoauth/receipt @ rev 15542

Up: firefox-langpack-it (17.0.11esr)
author Dominique Corbex <domcox@slitaz.org>
date Sun Nov 24 17:36:34 2013 +0100 (2013-11-24)
parents 8e4c74abdf74
children 051931e905b0
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 LICENSE="LGPL3"
9 TARBALL="$PACKAGE-$VERSION-src.tar.bz2"
10 WEB_SITE="http://github.com/ayoy/$PACKAGE"
11 WGET_URL="http://files.ayoy.net/$PACKAGE/release/$VERSION/src/$TARBALL"
13 DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \
14 libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \
15 libQtOpenGL libQtSql libQtWebkit"
16 BUILD_DEPENDS="qmake qca-dev xorg-libX11-dev dbus-dev Qt4-dev slitaz-toolchain"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # echo -n "Linking..."
22 # ln -s $src-src $src
23 # status
25 cd $src
27 qmake PREFIX="/usr"
28 # chmod +x configure
29 # ./configure \
30 # --prefix=/usr
32 patch -u <<ENDOFPATCH
33 --- Makefile
34 +++ Makefile
35 @@ -28,2 +28,1 @@
36 - sub-src \\
37 - sub-tests
38 + sub-src
39 ENDOFPATCH
41 status
43 patch -u <<ENDOFPATCH
44 --- Makefile
45 +++ Makefile
46 @@ -24,8 +24,7 @@
47 MOVE = mv -f
48 CHK_DIR_EXISTS= test -d
49 MKDIR = mkdir -p
50 -SUBTARGETS = \\
51 - sub-src
52 +SUBTARGETS = sub-src
54 src/\$(MAKEFILE):
55 @\$(CHK_DIR_EXISTS) src/ || \$(MKDIR) src/
56 @@ -140,16 +139,16 @@
57 qmake: qmake_all FORCE
58 @\$(QMAKE) -unix PREFIX=/usr -o Makefile qoauth.pro
60 -qmake_all: sub-src-qmake_all sub-tests-qmake_all FORCE
61 +qmake_all: sub-src-qmake_all FORCE
63 -make_default: sub-src-make_default-ordered sub-tests-make_default-ordered FORCE
64 -make_first: sub-src-make_first-ordered sub-tests-make_first-ordered FORCE
65 -all: sub-src-all-ordered sub-tests-all-ordered FORCE
66 -clean: sub-src-clean-ordered sub-tests-clean-ordered FORCE
67 -distclean: sub-src-distclean-ordered sub-tests-distclean-ordered FORCE
68 +make_default: sub-src-make_default-ordered FORCE
69 +make_first: sub-src-make_first-ordered FORCE
70 +all: sub-src-all-ordered FORCE
71 +clean: sub-src-clean-ordered FORCE
72 +distclean: sub-src-distclean-ordered FORCE
73 -\$(DEL_FILE) Makefile
74 -install_subtargets: sub-src-install_subtargets-ordered sub-tests-install_subtargets-ordered FORCE
75 -uninstall_subtargets: sub-src-uninstall_subtargets-ordered sub-tests-uninstall_subtargets-ordered FORCE
76 +install_subtargets: sub-src-install_subtargets-ordered FORCE
77 +uninstall_subtargets: sub-src-uninstall_subtargets-ordered FORCE
79 check: sub-tests
80 ( cd tests/ut_interface && ./ut_interface ) && ( cd tests/ft_interface && ./ft_interface )
81 ENDOFPATCH
83 status
85 if [ -f /usr/include/QtOAuth ] || [ -d /usr/include/QtOAuth ] ; then
86 echo -n "Removing QtOAuth placeholder... "
87 rm -rf /usr/include/QtOAuth/
88 status && echo
89 fi
91 make $MAKEFLAGS && make DESTDIR=$_pkg install
92 }
94 # Rules to gen a SliTaz package suitable for Tazpkg.
95 genpkg_rules()
96 {
97 mkdir -p $fs/usr
98 for DIRECTORY in lib include ; do
99 cp -a $src/$DIRECTORY $fs/usr
100 done
101 cp $src/src/*.h $fs/usr/include
103 mv $fs/usr/include/QtOAuth $fs/usr/include/QtOAuth.bak
104 mkdir $fs/usr/include/QtOAuth/
105 mv $fs/usr/include/interface.h $fs/usr/include/QtOAuth/interface.h
106 cp $fs/usr/include/QtOAuth/interface.h $fs/usr/include/interface.h
107 mv $fs/usr/include/QtOAuth.bak $fs/usr/include/QtOAuth/QtOAuth
109 mkdir -p $fs/usr/share/qt/mkspecs/features && \
110 cp $src/oauth.prf $fs/usr/share/qt/mkspecs/features/oauth.prf
112 # Copy .desktop file:
113 # cp -a $WOK/$PACKAGE/stuff/* $fs/usr
114 }
116 pre_install()
117 {
118 if [ -f /usr/include/QtOAuth ] || [ -d /usr/include/QtOAuth ] ; then
119 echo -n "Removing QtOAuth placeholder... "
120 rm -rf /usr/include/QtOAuth/
121 status && echo
122 fi
123 }