wok-current view qoauth/receipt @ rev 23887

glibc: fix for binutils 2.29 (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 17 11:18:27 2020 +0000 (2020-07-17)
parents a78610b2eb47
children 5ea0ce1cecc0
line source
1 # SliTaz package receipt.
3 PACKAGE="qoauth"
4 VERSION="2.0.0"
5 CATEGORY="development"
6 SHORT_DESC="OAuth support for Qt applications."
7 MAINTAINER="ben@seawolfsanctuary.com"
8 LICENSE="LGPL3"
9 WEB_SITE="https://github.com/ayoy/qoauth"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
14 DEPENDS="glibc-locale libQt3Support libQtClucene libQtCore libQtDBus libQtDesigner
15 libQtGui libQtHelp libQtNetwork libQtOpenGL libQtScript libQtSql libQtSvg
16 libQtWebkit libQtXml"
17 BUILD_DEPENDS="dbus-dev qca-dev qmake Qt4-dev slitaz-toolchain xorg-libX11-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # echo -n "Linking..."
23 # ln -s $src-src $src
24 # status
26 qmake PREFIX="/usr"
27 # chmod +x configure
28 # ./configure \
29 # --prefix=/usr
31 patch -u <<ENDOFPATCH
32 --- Makefile
33 +++ Makefile
34 @@ -28,2 +28,1 @@
35 - sub-src \\
36 - sub-tests
37 + sub-src
38 ENDOFPATCH
40 status
42 patch -u <<ENDOFPATCH
43 --- Makefile
44 +++ Makefile
45 @@ -24,8 +24,7 @@
46 MOVE = mv -f
47 CHK_DIR_EXISTS= test -d
48 MKDIR = mkdir -p
49 -SUBTARGETS = \\
50 - sub-src
51 +SUBTARGETS = sub-src
53 src/\$(MAKEFILE):
54 @\$(CHK_DIR_EXISTS) src/ || \$(MKDIR) src/
55 @@ -140,16 +139,16 @@
56 qmake: qmake_all FORCE
57 @\$(QMAKE) -unix PREFIX=/usr -o Makefile qoauth.pro
59 -qmake_all: sub-src-qmake_all sub-tests-qmake_all FORCE
60 +qmake_all: sub-src-qmake_all FORCE
62 -make_default: sub-src-make_default-ordered sub-tests-make_default-ordered FORCE
63 -make_first: sub-src-make_first-ordered sub-tests-make_first-ordered FORCE
64 -all: sub-src-all-ordered sub-tests-all-ordered FORCE
65 -clean: sub-src-clean-ordered sub-tests-clean-ordered FORCE
66 -distclean: sub-src-distclean-ordered sub-tests-distclean-ordered FORCE
67 +make_default: sub-src-make_default-ordered FORCE
68 +make_first: sub-src-make_first-ordered FORCE
69 +all: sub-src-all-ordered FORCE
70 +clean: sub-src-clean-ordered FORCE
71 +distclean: sub-src-distclean-ordered FORCE
72 -\$(DEL_FILE) Makefile
73 -install_subtargets: sub-src-install_subtargets-ordered sub-tests-install_subtargets-ordered FORCE
74 -uninstall_subtargets: sub-src-uninstall_subtargets-ordered sub-tests-uninstall_subtargets-ordered FORCE
75 +install_subtargets: sub-src-install_subtargets-ordered FORCE
76 +uninstall_subtargets: sub-src-uninstall_subtargets-ordered FORCE
78 check: sub-tests
79 ( cd tests/ut_interface && ./ut_interface ) && ( cd tests/ft_interface && ./ft_interface )
80 ENDOFPATCH
82 status
84 if [ -f /usr/include/QtOAuth ] || [ -d /usr/include/QtOAuth ]
85 then
86 echo -n "Removing QtOAuth placeholder... "
87 rm -rf /usr/include/QtOAuth/
88 status && echo
89 fi
91 make $MAKEFLAGS &&
92 make DESTDIR=$DESTDIR install
93 }
95 # Rules to gen a SliTaz package suitable for Tazpkg.
96 genpkg_rules()
97 {
98 mkdir -p $fs/usr
100 for DIRECTORY in lib include
101 do
102 cp -a $src/$DIRECTORY $fs/usr
103 done
104 cp $src/src/*.h $fs/usr/include
106 mv $fs/usr/include/QtOAuth $fs/usr/include/QtOAuth.bak
107 mkdir $fs/usr/include/QtOAuth/
108 mv $fs/usr/include/interface.h $fs/usr/include/QtOAuth/interface.h
109 cp $fs/usr/include/QtOAuth/interface.h \
110 $fs/usr/include/interface.h
111 mv $fs/usr/include/QtOAuth.bak $fs/usr/include/QtOAuth/QtOAuth
113 mkdir -p $fs/usr/share/qt/mkspecs/features &&
114 cp $src/oauth.prf $fs/usr/share/qt/mkspecs/features/oauth.prf
116 # Copy .desktop file:
117 # cp -a $WOK/$PACKAGE/stuff/* $fs/usr
118 }
120 pre_install()
121 {
122 if [ -f /usr/include/QtOAuth ] || [ -d /usr/include/QtOAuth ]
123 then
124 echo -n "Removing QtOAuth placeholder... "
125 rm -rf /usr/include/QtOAuth/
126 status && echo
127 fi
128 }