wok-next diff xtrkcad/receipt @ rev 20775
quodlibet: remove non-existent package from bdeps
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 06 20:44:57 2018 +0300 (2018-06-06) |
parents | d43bf7aae921 |
children | f99935f1778a |
line diff
1.1 --- a/xtrkcad/receipt Wed Mar 21 15:58:17 2018 +0200 1.2 +++ b/xtrkcad/receipt Wed Jun 06 20:44:57 2018 +0300 1.3 @@ -16,55 +16,46 @@ 1.4 gtk+-dev libxml2-dev libgtkhtml-dev libgtkhtml doxygen xorg-xproto \ 1.5 xorg-renderproto xorg-libX11-dev xorg-kbproto xorg-libXau-dev \ 1.6 xorg-libXdmcp-dev" 1.7 -SPLIT="xtrkcad-doc" 1.8 +SPLIT="xtrkcad-doc xtrkcad" 1.9 1.10 compile_rules() { 1.11 # Binutils 2.22 break many packages build without LDFLAGS set correctly. 1.12 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries" 1.13 - 1.14 + 1.15 XTRKCAD_STUFF=$stuff 1.16 - 1.17 + 1.18 [ -d $PACKAGE-source-$VERSION ] && mv $PACKAGE-source-$VERSION $PACKAGE-$VERSION 1.19 cd $src 1.20 - sed -e 's|share/xtrkcad/locale|share/locale|g' -i CMakeLists.txt && 1.21 - cmake -D CMAKE_C_COMPILER:FILEPATH=${TOOLPREFIX}gcc \ 1.22 + 1.23 + sed -e 's|share/xtrkcad/locale|share/locale|g' -i CMakeLists.txt 1.24 + 1.25 + cmake \ 1.26 + -D CMAKE_C_COMPILER:FILEPATH=${TOOLPREFIX}gcc \ 1.27 -D CMAKE_CXX_COMPILER:FILEPATH=${TOOLPREFIX}c++ \ 1.28 -D CMAKE_INSTALL_PREFIX=/usr \ 1.29 - -D XTRKCAD_USE_GTK=ON -D XTRKCAD_USE_GTK_CAIRO=ON . && 1.30 + -D XTRKCAD_USE_GTK=ON \ 1.31 + -D XTRKCAD_USE_GTK_CAIRO=ON \ 1.32 + . && 1.33 make PREFIX=/usr && 1.34 - make DESTDIR=$DESTDIR install && 1.35 - mkdir -p $DESTDIR/usr/share/pixmaps && 1.36 - cp -f $XTRKCAD_STUFF/$PACKAGE.png $DESTDIR/usr/share/pixmaps && 1.37 - mkdir -p $DESTDIR/usr/share/applications && 1.38 - cp -f $XTRKCAD_STUFF/$PACKAGE.desktop $DESTDIR/usr/share/applications && 1.39 - sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $DESTDIR/usr/share/applications/*.desktop 1.40 + make DESTDIR=$DESTDIR install || return 1 1.41 + 1.42 + install -Dm644 $stuff/xtrkcad.png $install/usr/share/pixmaps/xtrkcad.png 1.43 + install -Dm644 $stuff/xtrkcad.desktop $install/usr/share/applications/xtrkcad.desktop 1.44 } 1.45 1.46 genpkg_rules() { 1.47 case $PACKAGE in 1.48 + xtrkcad-doc) 1.49 + copy html/ examples/ demos/ 1.50 + CAT="games|documentation, examples, and how-to demos" 1.51 + ;; 1.52 xtrkcad) 1.53 - mkdir -p $fs/usr/share/$PACKAGE 1.54 - cp -f $install/usr/share/$PACKAGE/$PACKAGE.tip $fs/usr/share/$PACKAGE 1.55 - cp -f $install/usr/share/$PACKAGE/$PACKAGE.xtq $fs/usr/share/$PACKAGE 1.56 - cp -f $install/usr/share/$PACKAGE/logo.bmp $fs/usr/share/$PACKAGE 1.57 - cp -a $install/usr/share/$PACKAGE/params $fs/usr/share/$PACKAGE 1.58 - 1.59 - cp -a $install/usr/share/applications $fs/usr/share 1.60 - cp -a $install/usr/share/pixmaps $fs/usr/share 1.61 - 1.62 - cp -a $install/usr/bin $fs/usr 1.63 + copy @std @rm 1.64 DEPENDS="menu-railroad glibc-base glib zlib expat libxml2 gtk+ \ 1.65 libgtkhtml fontconfig freetype atk cairo libpng16 pango \ 1.66 xorg-pixman xorg-libxcb xorg-xcb-util xorg-libX11 xorg-libXau \ 1.67 xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp \ 1.68 xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender" 1.69 ;; 1.70 - xtrkcad-doc) 1.71 - mkdir -p $fs/usr/share/$WANTED 1.72 - cp -a $install/usr/share/$WANTED/html $fs/usr/share/$WANTED 1.73 - cp -a $install/usr/share/$WANTED/examples $fs/usr/share/$WANTED 1.74 - cp -a $install/usr/share/$WANTED/demos $fs/usr/share/$WANTED 1.75 - CAT="games|documentation, examples, and how-to demos" 1.76 - ;; 1.77 esac 1.78 }