diff options
author | Andrey Maraev <andrew.maraev60@yandex.ru> | 2012-06-30 12:30:49 -0400 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-06-30 12:30:49 -0400 |
commit | b1aabf801d562c2f5ca8b6d6168e8526a3892200 (patch) | |
tree | 4826c78183f9db19547c8cce987d8b5af003fb39 | |
parent | 9278151c5e7f44be761e0aa3bbde97737da8e7c6 (diff) |
development/regexxer: Added (nifty GUI search/replace tool)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
-rw-r--r-- | development/regexxer/README | 10 | ||||
-rw-r--r-- | development/regexxer/doinst.sh | 24 | ||||
-rw-r--r-- | development/regexxer/regexxer.SlackBuild | 82 | ||||
-rw-r--r-- | development/regexxer/regexxer.info | 10 | ||||
-rw-r--r-- | development/regexxer/slack-desc | 19 |
5 files changed, 145 insertions, 0 deletions
diff --git a/development/regexxer/README b/development/regexxer/README new file mode 100644 index 0000000000000..c2616295d56fc --- /dev/null +++ b/development/regexxer/README @@ -0,0 +1,10 @@ +Regexxer is a nifty search/replace tool for the desktop user. It features +recursive search through directory trees and Perl-style regular expressions +(using libpcre). +The primary audience of this tool are Linux/Unix users who are tired of +typing find/grep/sed/awk/perl command lines. +The user interface is similar to the project-wide search/replace +dialog in the Sniff+ IDE, but regexxer aims to surpass it. + +This requires: libsigc++, glibmm, cairomm, pangomm, mm-common, +atkmm, gtkmm, libglademm, gconfmm
\ No newline at end of file diff --git a/development/regexxer/doinst.sh b/development/regexxer/doinst.sh new file mode 100644 index 0000000000000..66db12d138003 --- /dev/null +++ b/development/regexxer/doinst.sh @@ -0,0 +1,24 @@ +schema_install() { + SCHEMA="$1" + GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" \ + chroot . gconftool-2 --makefile-install-rule \ + /etc/gconf/schemas/$SCHEMA \ + 1>/dev/null +} + +schema_install regexxer.schemas + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + +if [ -x /usr/bin/glib-compile-schemas ]; then + /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/ +fi + diff --git a/development/regexxer/regexxer.SlackBuild b/development/regexxer/regexxer.SlackBuild new file mode 100644 index 0000000000000..438a751f4b4d7 --- /dev/null +++ b/development/regexxer/regexxer.SlackBuild @@ -0,0 +1,82 @@ +#!/bin/sh + +# Slackware build script for regexxer + +# Written by Andrey Maraev <andrew.maraev60@yandex.ru> + +PRGNAM=regexxer +VERSION=${VERSION:-0.9} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING ChangeLog NEWS README \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/development/regexxer/regexxer.info b/development/regexxer/regexxer.info new file mode 100644 index 0000000000000..031c2eacd205b --- /dev/null +++ b/development/regexxer/regexxer.info @@ -0,0 +1,10 @@ +PRGNAM="regexxer" +VERSION="0.9" +HOMEPAGE="http://regexxer.sourceforge.net" +DOWNLOAD="http://sourceforge.net/projects/regexxer/files/regexxer/0.9/regexxer-0.9.tar.gz" +MD5SUM="3c45ed51f28c3d1c7228dff7fb904459" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Andrey Maraev" +EMAIL="andrew.maraev60@yandex.ru" +APPROVED="dsomero" diff --git a/development/regexxer/slack-desc b/development/regexxer/slack-desc new file mode 100644 index 0000000000000..50a3374d6d9c7 --- /dev/null +++ b/development/regexxer/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +regexxer: regexxer (nifty GUI search/replace tool) +regexxer: +regexxer: Nifty GUI search/replace tool featuring Perl-style regular +regexxer: expressions. +regexxer: If you need project-wide substitution and you’re tired +regexxer: of hacking sed command lines together, +regexxer: then you should definitely give it a try. +regexxer: +regexxer: Homepage - http://regexxer.sourceforge.net +regexxer: +regexxer: |