# HG changeset patch # User Christophe Lincoln # Date 1264112045 -3600 # Node ID e1a68e5d0646fe86ea7c3842c2c1fe8d55a9a1a0 # Parent 1d8e4936f96b70f5d3a543133229d5ab7651239a Up: beaver (0.4.0rc1) - Add custom config file, may replace geany has code editor diff -r 1d8e4936f96b -r e1a68e5d0646 beaver/receipt --- a/beaver/receipt Thu Jan 21 23:09:20 2010 +0100 +++ b/beaver/receipt Thu Jan 21 23:14:05 2010 +0100 @@ -1,31 +1,39 @@ # SliTaz package receipt. PACKAGE="beaver" -VERSION="0.3.0.1" +# Stable: VERSION="0.3.0.1" +VERSION="0.4.0rc1" CATEGORY="development" SHORT_DESC="Simple and very light advanced text editor." MAINTAINER="pankso@slitaz.org" DEPENDS="gtk+ xorg-libXdamage" BUILD_DEPENDS="gtk+-dev xorg-xproto" -TARBALL="$PACKAGE-$VERSION.tar.bz2" +TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.nongnu.org/beaver/" -WGET_URL="http://mirror.slitaz.org/sources/packages/b/$TARBALL" +WGET_URL="http://www.nongnu.org/beaver/dloads/tarballs/$TARBALL" TAGS="text-editor" # Rules to configure and make the package. compile_rules() { + mv beaver0.4.0 $src 2>/dev/null cd $src - make + ./autogen.sh && + ./configure \ + --prefix=/usr \ + $CONFIGURE_ARGS && + make && make DESTDIR=$PWD/_pkg install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p \ - $fs/usr/bin \ - $fs/usr/share/pixmaps \ - $fs/usr/share/applications - cp $src/src/beaver $fs/usr/bin - cp $src/pixmaps/beaver.png $fs/usr/share/pixmaps + $fs/usr/share/beaver \ + $fs/usr/share/pixmaps + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/share/beaver/resource $fs/usr/share/beaver + cp $src/pixmaps/icons/32x32/* $fs/usr/share/pixmaps + # Custom default configuration + cp -a stuff/beaver.conf.default $fs/usr/share/beaver/resource } diff -r 1d8e4936f96b -r e1a68e5d0646 beaver/stuff/beaver.conf.default --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/beaver/stuff/beaver.conf.default Thu Jan 21 23:14:05 2010 +0100 @@ -0,0 +1,62 @@ +#default beaver config file + +[RecentFiles] +MaxNb=5 + +[Window] +Autosave=true +Width=540 +Height=480 + +[Tabs] +Position=0 +LabelLength=12 + +[Editor] +Font=Sans 9 +BGRed=65535 +BGBlue=65535 +BGGreen=65535 +FGRed=0 +FGBlue=0 +FGGreen=0 +SelectedBGRed=40000 +SelectedBGBlue=40000 +SelectedBGGreen=40000 +SelectedFGRed=65535 +SelectedFGBlue=65535 +SelectedFGGreen=65535 +Wordwrap=false +TabWidth=4 +AutoIndent=true + +[MsgBar] +Display=true +Interval=2000 + +[ToolBar] +Display=true + +[ScrollBar] +Position=0 + +[ToolBar] +Style=0 +Size=0 + +[AutoSave] +Delay=0 +Backup=false +BackupExt=~ + +[CompletionPopUp] +Width=130 +Height=200 + +[Adv] +SynHigh=true +SynHighDepth=12000 +AutoCorrect=true + +[Misc] +Marker=true diff -r 1d8e4936f96b -r e1a68e5d0646 beaver/stuff/beaver.desktop --- a/beaver/stuff/beaver.desktop Thu Jan 21 23:09:20 2010 +0100 +++ b/beaver/stuff/beaver.desktop Thu Jan 21 23:14:05 2010 +0100 @@ -9,3 +9,4 @@ StartupNotify=true Type=Application Categories=Application;Development; +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;