wok annotate pygtksourceview/receipt @ rev 25524
created recipes for tree-sitter and tree-sitter-dev 0.20.7
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 17:21:52 2023 +0100 (21 months ago) |
parents | 380ffe05937a |
children |
rev | line source |
---|---|
al@13721 | 1 # SliTaz package receipt. |
al@13721 | 2 |
al@13721 | 3 PACKAGE="pygtksourceview" |
al@13721 | 4 VERSION="2.10.1" |
al@13721 | 5 CATEGORY="misc" |
al@13721 | 6 SHORT_DESC="Python bindings for GtkSourceView" |
al@13721 | 7 MAINTAINER="al.bobylev@gmail.com" |
pascal@15000 | 8 LICENSE="GPL2" |
al@13721 | 9 WEB_SITE="http://projects.gnome.org/gtksourceview/pygtksourceview.html" |
al@13721 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@13721 | 11 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL" |
al@13721 | 12 |
al@13721 | 13 DEPENDS="python pygtk gtksourceview pygobject" |
al@13721 | 14 BUILD_DEPENDS="python-dev pygtk-dev gtksourceview-dev pygobject-dev pkg-config \ |
al@13721 | 15 libxml2-dev" |
al@13721 | 16 |
pascal@24111 | 17 current_version() |
pascal@24111 | 18 { |
pascal@24111 | 19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24111 | 20 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24111 | 21 } |
pascal@24111 | 22 |
al@13721 | 23 # Rules to configure and make the package. |
al@13721 | 24 compile_rules() |
al@13721 | 25 { |
al@13721 | 26 CFLAGS="$CFLAGS $(pkg-config --cflags pygtk-2.0 gtksourceview-2.0)" |
al@13721 | 27 ./configure $CONFIGURE_ARGS --disable-docs && |
al@13721 | 28 make && make install |
al@13721 | 29 } |
al@13721 | 30 |
al@13721 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@13721 | 32 genpkg_rules() |
al@13721 | 33 { |
al@13721 | 34 LIBDIR="usr/lib/python2.7/site-packages" |
al@13721 | 35 mkdir -p $fs/$LIBDIR |
al@13721 | 36 cp -a $install/$LIBDIR/gtksourceview2.so $fs/$LIBDIR |
al@13721 | 37 } |