wok rev 4831

Up: beaver (0.4.0rc1) - Add custom config file, may replace geany has code editor
author Christophe Lincoln <pankso@slitaz.org>
date Thu Jan 21 23:14:05 2010 +0100 (2010-01-21)
parents 1d8e4936f96b
children dc63242ab522
files beaver/receipt beaver/stuff/beaver.conf.default beaver/stuff/beaver.desktop
line diff
     1.1 --- a/beaver/receipt	Thu Jan 21 23:09:20 2010 +0100
     1.2 +++ b/beaver/receipt	Thu Jan 21 23:14:05 2010 +0100
     1.3 @@ -1,31 +1,39 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="beaver"
     1.7 -VERSION="0.3.0.1"
     1.8 +# Stable: VERSION="0.3.0.1"
     1.9 +VERSION="0.4.0rc1"
    1.10  CATEGORY="development"
    1.11  SHORT_DESC="Simple and very light advanced text editor."
    1.12  MAINTAINER="pankso@slitaz.org"
    1.13  DEPENDS="gtk+ xorg-libXdamage"
    1.14  BUILD_DEPENDS="gtk+-dev xorg-xproto"
    1.15 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.16 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17  WEB_SITE="http://www.nongnu.org/beaver/"
    1.18 -WGET_URL="http://mirror.slitaz.org/sources/packages/b/$TARBALL"
    1.19 +WGET_URL="http://www.nongnu.org/beaver/dloads/tarballs/$TARBALL"
    1.20  TAGS="text-editor"
    1.21  
    1.22  # Rules to configure and make the package.
    1.23  compile_rules()
    1.24  {
    1.25 +	mv beaver0.4.0 $src 2>/dev/null
    1.26  	cd $src
    1.27 -	make
    1.28 +	./autogen.sh &&
    1.29 +	./configure \
    1.30 +		--prefix=/usr \
    1.31 +		$CONFIGURE_ARGS &&
    1.32 +	make && make DESTDIR=$PWD/_pkg install
    1.33  }
    1.34  
    1.35  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.36  genpkg_rules()
    1.37  {
    1.38  	mkdir -p \
    1.39 -		$fs/usr/bin \
    1.40 -		$fs/usr/share/pixmaps \
    1.41 -		$fs/usr/share/applications
    1.42 -	cp $src/src/beaver $fs/usr/bin
    1.43 -	cp $src/pixmaps/beaver.png $fs/usr/share/pixmaps
    1.44 +		$fs/usr/share/beaver \
    1.45 +		$fs/usr/share/pixmaps
    1.46 +	cp -a $_pkg/usr/bin $fs/usr
    1.47 +	cp -a $_pkg/usr/share/beaver/resource $fs/usr/share/beaver
    1.48 +	cp $src/pixmaps/icons/32x32/* $fs/usr/share/pixmaps
    1.49 +	# Custom default configuration
    1.50 +	cp -a stuff/beaver.conf.default $fs/usr/share/beaver/resource
    1.51  }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/beaver/stuff/beaver.conf.default	Thu Jan 21 23:14:05 2010 +0100
     2.3 @@ -0,0 +1,62 @@
     2.4 +#default beaver config file
     2.5 +
     2.6 +[RecentFiles]
     2.7 +MaxNb=5
     2.8 +
     2.9 +[Window]
    2.10 +Autosave=true
    2.11 +Width=540
    2.12 +Height=480
    2.13 +
    2.14 +[Tabs]
    2.15 +Position=0
    2.16 +LabelLength=12
    2.17 +
    2.18 +[Editor]
    2.19 +Font=Sans 9
    2.20 +BGRed=65535
    2.21 +BGBlue=65535
    2.22 +BGGreen=65535
    2.23 +FGRed=0
    2.24 +FGBlue=0
    2.25 +FGGreen=0
    2.26 +SelectedBGRed=40000
    2.27 +SelectedBGBlue=40000
    2.28 +SelectedBGGreen=40000
    2.29 +SelectedFGRed=65535
    2.30 +SelectedFGBlue=65535
    2.31 +SelectedFGGreen=65535
    2.32 +Wordwrap=false
    2.33 +TabWidth=4
    2.34 +AutoIndent=true
    2.35 +
    2.36 +[MsgBar]
    2.37 +Display=true
    2.38 +Interval=2000
    2.39 +
    2.40 +[ToolBar]
    2.41 +Display=true
    2.42 +
    2.43 +[ScrollBar]
    2.44 +Position=0
    2.45 +
    2.46 +[ToolBar]
    2.47 +Style=0
    2.48 +Size=0
    2.49 +
    2.50 +[AutoSave]
    2.51 +Delay=0
    2.52 +Backup=false
    2.53 +BackupExt=~
    2.54 +
    2.55 +[CompletionPopUp]
    2.56 +Width=130
    2.57 +Height=200
    2.58 +
    2.59 +[Adv]
    2.60 +SynHigh=true
    2.61 +SynHighDepth=12000
    2.62 +AutoCorrect=true
    2.63 +
    2.64 +[Misc]
    2.65 +Marker=true
     3.1 --- a/beaver/stuff/beaver.desktop	Thu Jan 21 23:09:20 2010 +0100
     3.2 +++ b/beaver/stuff/beaver.desktop	Thu Jan 21 23:14:05 2010 +0100
     3.3 @@ -9,3 +9,4 @@
     3.4  StartupNotify=true
     3.5  Type=Application
     3.6  Categories=Application;Development;
     3.7 +MimeType=text/plain;text/x-chdr;text/x-csrc;text/x-c++hdr;text/x-c++src;text/x-java;text/x-perl;text/x-python;application/x-php;application/x-httpd-php*;application/xml;text/html;text/css;text/x-sql;text/x-diff;