diff options
-rw-r--r-- | pcr/cedet-git/PKGBUILD | 45 | ||||
-rw-r--r-- | pcr/cedet-git/cedet-git.install | 27 |
2 files changed, 72 insertions, 0 deletions
diff --git a/pcr/cedet-git/PKGBUILD b/pcr/cedet-git/PKGBUILD new file mode 100644 index 000000000..19206524a --- /dev/null +++ b/pcr/cedet-git/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer (Arch): Stefan Husmann <stefan-husmann@t-online.de> +# Contributor (Arch): Jed Brown <jed@59A2.org> +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> + +pkgname=cedet-git +_gitname=cedet +pkgver=9571.gf6639c6 +pkgrel=1 +pkgdesc="Collection of Emacs Development Enviromnent Tools (Git version)" +arch=('any') +url="http://cedet.sourceforge.net/" +license=('GPL') +conflicts=(cedet cedet-cvs cedet-bzr) +replaces=(cedet-cvs cedet-bzr) +provides=('cedet') +depends=('emacs') +makedepends=('git') +source=('cedet::git+http://git.code.sf.net/p/cedet/git') +md5sums=('SKIP') +install=$pkgname.install + +pkgver() { + cd "${srcdir}"/${_gitname} + printf "%s.g%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD) +} + +build() { + cd "${srcdir}"/${_gitname} + + unset MAKEFLAGS + make +} + +package() { + cd "$srcdir/${_gitname}" + + install -d $pkgdir/usr/share/emacs/site-lisp/cedet + install cedet-devel-load.el cedet-remove-builtin.el $pkgdir/usr/share/emacs/site-lisp/cedet + cp -a lisp contrib $pkgdir/usr/share/emacs/site-lisp/cedet + + # http://sourceforge.net/tracker/index.php?func=detail&aid=3585232&group_id=17886&atid=117886 + touch $pkgdir/usr/share/emacs/site-lisp/cedet/.nosearch + + # make INFODIR=$pkgdir/usr/share/info install-info +} diff --git a/pcr/cedet-git/cedet-git.install b/pcr/cedet-git/cedet-git.install new file mode 100644 index 000000000..6e78222b6 --- /dev/null +++ b/pcr/cedet-git/cedet-git.install @@ -0,0 +1,27 @@ +infodir=usr/share/info +filelist=(bovine.info.gz cedet.info.gz cogre.info.gz ede.info.gz eieio.info.gz grammar-fw.info.gz semantic-appdev.info.gz semantic.info.gz semantic-langdev.info semantic-user.info.gz speedbar.info.gz srecode.info.gz wisent.info.gz) + +post_install() { + cat <<EOF +==> Put this in your \$HOME/.emacs file to enable CEDET: +==> (load-file "/usr/share/emacs/site-lisp/cedet/cedet-devel-load.el") +==> (semantic-load-enable-code-helpers) +EOF + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info "$infodir/$file" "$infodir/dir" 2> /dev/null + done +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info --delete "$infodir/$file" "$infodir/dir" 2> /dev/null + done +} + +# vim:set ts=2 sw=2 et: |