emacs: new package, emacs 24.5

This commit is contained in:
Tom G. Christensen 2016-03-15 20:53:48 +01:00
parent 3d55d63beb
commit 77dccc9cf9
4 changed files with 133 additions and 0 deletions

84
emacs/build.sh Executable file
View File

@ -0,0 +1,84 @@
#!/bin/bash
# This is a buildpkg build.sh script
# build.sh helper functions
. ${BUILDPKG_SCRIPTS}/build.sh.functions
#
###########################################################
# Check the following 4 variables before running the script
topdir=emacs
version=24.5
pkgver=1
source[0]=ftp://ftp.heanet.ie/pub/gnu/$topdir/$topdir-$version.tar.xz
# If there are no patches, simply comment this
#patch[0]=
# Source function library
. ${BUILDPKG_SCRIPTS}/buildpkg.functions
# Global settings
export CPPFLAGS="-I$prefix/include"
export LDFLAGS="-L$prefix/lib -R$prefix/lib"
basic_args=("${configure_args[@]}")
reg prep
prep()
{
generic_prep
}
reg build
build()
{
setdir source
mkdir -p build-nox && cd build-nox
${__ln_s} ../configure .
configure_args=("${basic_args[@]}" --with-x=no)
generic_build build-nox
setdir source
mkdir -p build-x11 && cd build-x11
${__ln_s} ../configure .
configure_args=("${basic_args[@]}" --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no)
generic_build build-x11
}
reg check
check()
{
generic_check
}
reg install
install()
{
generic_install DESTDIR build-x11
${__install} -pm 755 $srcdir/$topsrcdir/build-nox/src/emacs ${stagedir}${prefix}/${_bindir}/emacs-${version}-nox
(cd ${stagedir}${prefix}/${_bindir} && ${__ln_s} emacs-${version}-nox emacs-nox)
${__mv} ${stagedir}${prefix}/${_infodir}/{info.info.gz,info.gz}
${__mv} ${stagedir}${prefix}/${_bindir}/{ctags,gctags}
${__mv} ${stagedir}${prefix}/${_mandir}/man1/{ctags.1.gz,gctags.1.gz}
${__rm} -f ${stagedir}${prefix}/var/games/emacs/*scores
${__rmdir} ${stagedir}${prefix}/var/games/emacs
${__rmdir} ${stagedir}${prefix}/var/games
${__rmdir} ${stagedir}${prefix}/var
${__gsed} -i 's|/usr/bin/perl|/usr/tgcware/bin/perl|' ${stagedir}${prefix}/${_bindir}/grep-changelog
custom_install=1
generic_install
docs_for emacs-common etc/NEWS COPYING BUGS README
}
reg pack
pack()
{
generic_pack
}
reg distclean
distclean()
{
clean distclean
}
###################################################
# No need to look below here
###################################################
build_sh $*

4
emacs/meta/ChangeLog Normal file
View File

@ -0,0 +1,4 @@
CHANGELOG
---------
* Sat Mar 12 2016 Tom G. Christensen <swpkg@jupiterrise.com> - 24.5-1
- First package

2
emacs/meta/depend Normal file
View File

@ -0,0 +1,2 @@
TGCemacs emacs-common auto
TGCemacsn emacs-common auto

43
emacs/meta/pkgdef Normal file
View File

@ -0,0 +1,43 @@
[emacs-common]
pkgname="${pkgprefix}${topdir}c"
name="${topdir}-common - Emacs common files"
pkgcat="application"
pkgvendor="http://www.gnu.org/software/emacs/"
pkgdesc="This package contains all the common files needed by emacs or emacs-nox."
pkgver="$pkgver"
files(-,root,bin)
default_docs
$_bindir/ebrowse
$_bindir/emacsclient
$_bindir/etags
$_bindir/gctags
$_bindir/grep-changelog
$_mandir/man?/*
$_infodir/*
$_sharedir/emacs
libexec/emacs
[emacs]
pkgname="${pkgprefix}${topdir}"
name="$topdir - GNU Emacs text editor"
pkgcat="application"
pkgvendor="http://www.gnu.org/software/emacs/"
pkgdesc="This package provides an emacs binary with support for X windows."
pkgver="$pkgver"
files(-,root,bin)
$_bindir/emacs
$_bindir/emacs-$version
$_sharedir/applications/emacs.desktop
$_sharedir/icons
[emacs-nox]
pkgname="${pkgprefix}${topdir}n"
name="${topdir}-nox - GNU Emacs text editor without X support"
pkgcat="application"
pkgvendor="http://www.gnu.org/software/emacs/"
pkgdesc="This package provides an emacs binary with no X windows support."
pkgver="$pkgver"
files(-,root,bin)
$_bindir/emacs-nox
$_bindir/emacs-${version}-nox