Commit 19cc1619 authored by Neofytos Kolokotronis's avatar Neofytos Kolokotronis

ccache, chmlib, chrpath, clisp, commoncpp2: moved from core to desktop, FS#1867

parent 80a392a9
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
pkgname=ccache
pkgver=3.1.9
pkgrel=2
pkgdesc="A compiler cache."
url="http://ccache.samba.org/"
license=('GPL2')
arch=('x86_64')
depends=('zlib')
source=(http://samba.org/ftp/$pkgname/$pkgname-$pkgver.tar.bz2)
md5sums=('65f48376a91d3651d6527ca568858be8')
build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr
make
}
package() {
cd $srcdir/$pkgname-$pkgver
install -Dm 755 ccache $pkgdir/usr/bin/ccache
install -Dm 644 ccache.1 $pkgdir/usr/share/man/man1/ccache.1
mkdir -p $pkgdir/usr/lib/ccache/bin
ln -sf /usr/bin/ccache $pkgdir/usr/lib/ccache/bin/cc
ln -sf /usr/bin/ccache $pkgdir/usr/lib/ccache/bin/gcc
ln -sf /usr/bin/ccache $pkgdir/usr/lib/ccache/bin/g++
ln -sf /usr/bin/ccache $pkgdir/usr/lib/ccache/bin/cpp
ln -sf /usr/bin/ccache $pkgdir/usr/lib/ccache/bin/c++
ln -sf /usr/bin/ccache $pkgdir/usr/lib/ccache/bin/$CHOST-cc
ln -sf /usr/bin/ccache $pkgdir/usr/lib/ccache/bin/$CHOST-gcc
ln -sf /usr/bin/ccache $pkgdir/usr/lib/ccache/bin/$CHOST-g++
ln -sf /usr/bin/ccache $pkgdir/usr/lib/ccache/bin/$CHOST-cpp
ln -sf /usr/bin/ccache $pkgdir/usr/lib/ccache/bin/$CHOST-c++
}
pkgname=chmlib
pkgver=0.40
pkgrel=3
pkgdesc="Library for dealing with Microsoft ITSS/CHM format files"
arch=('x86_64')
url="http://morte.jedrea.com/~jedwin/projects/chmlib/"
license=('LGPL')
depends=('glibc')
source=(http://morte.jedrea.com/~jedwin/projects/chmlib/${pkgname}-${pkgver}.tar.bz2)
md5sums=('7ea49ed8c335215c1edc6fae83e6b912')
build() {
cd "${srcdir}"/${pkgname}-${pkgver}
./configure --prefix=/usr \
--enable-examples=yes
make
}
package() {
cd "${srcdir}"/${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
}
pkgname=chrpath
pkgver=0.16
pkgrel=1
pkgdesc="Allows you to modify the dynamic library load path"
arch=('x86_64')
url="http://directory.fsf.org/project/chrpath/"
license=('GPL2')
depends=('glibc')
source=("https://alioth.debian.org/frs/download.php/file/3979/${pkgname}-${pkgver}.tar.gz")
sha1sums=('174bb38c899229f4c928734b20e730f61191795a')
build() {
cd "${srcdir}"/$pkgname-$pkgver
./configure --prefix=/usr --mandir=/usr/share/man
make
}
package() {
cd "${srcdir}"/$pkgname-$pkgver
make DESTDIR="${pkgdir}" docdir=/usr/share/doc/chrpath install
}
# maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
pkgname=clisp
pkgver=2.49
pkgrel=5
pkgdesc="ANSI Common Lisp interpreter, compiler and debugger"
arch=('x86_64')
license=('GPL')
url="http://clisp.cons.org/"
depends=('readline' 'libsigsegv')
provides=('common-lisp')
makedepends=('ffcall')
options=('!makeflags' '!emptydirs')
source=(http://downloads.sourceforge.net/sourceforge/clisp/clisp-${pkgver}.tar.bz2
"clisp-gcc5.patch"
"patch-modules_readline_readline.lisp")
md5sums=('1962b99d5e530390ec3829236d168649'
'e3008f96f6cd3059717d4a930b8c0e9c'
'5b29c9301ab7c1b683da70c2f805609f')
prepare() {
cd $srcdir/${pkgname}-${pkgver}
patch -Np1 -i ../clisp-gcc5.patch
patch -Np0 -i ../patch-modules_readline_readline.lisp
# https://sourceforge.net/p/clisp/clisp/ci/cebd289dfc19de4aa504113dfcb0284657787430/
# http://hg.slitaz.org/wok/rev/d5a39f30f9f1#l2.28
sed -i 's/clisp\.cons\.org/clisp.org/' src/cfgunix.lisp
}
build() {
cd $srcdir/${pkgname}-${pkgver}
./configure --prefix=/usr --with-readline --with-ffcall src
cd src
./makemake --prefix=/usr --with-readline --with-ffcall --with-dynamic-ffi > Makefile
make
sed -i 's,http://www.lisp.org/HyperSpec/,http://www.lispworks.com/reference/HyperSpec/,g' config.lisp
make
}
package() {
cd $srcdir/${pkgname}-${pkgver}/src
make DESTDIR=$pkgdir install
}
diff -up clisp-2.47/modules/libsvm/svm.cpp clisp-2.47/modules/libsvm/svm
diff -up clisp-2.47/src/time.d.cpp clisp-2.47/src/time.d
--- clisp-2.47/src/time.d.cpp 2009-03-01 20:14:24.000000000 +0100
+++ clisp-2.47/src/time.d 2009-03-01 20:14:46.000000000 +0100
@@ -302,7 +302,7 @@ global object internal_time_to_I (const
#ifdef TIME_WIN32
return L2_to_I(tp->dwHighDateTime,tp->dwLowDateTime);
#endif
-#elif TIME_METHOD = 1
+#elif TIME_METHOD == 1
return UL_to_I(*tp);
#else
#error internal_time_to_I: invalid TIME_METHOD
--- ./src/makemake.in.orig 2013-02-16 15:26:28.000000000 -0700
+++ ./src/makemake.in 2015-02-11 17:20:00.000000000 -0700
@@ -1217,7 +1217,7 @@ if [ $XCC_GCC = true ] ; then
if [ $CROSS = false ] ; then
case "$XCC_GCC_VERSION" in
# gcc 2.7 introduced an annoying warning, but gcc 2.8 has a workaround:
- 2.[8-9]* | 3.* | 4.* | egcs-2.*)
+ 2.[8-9]* | 3.* | 4.* | 5.* | 6.* | 7.* | 8.* | egcs-2.*)
XCFLAGS=$XCFLAGS' -Wno-sign-compare -Wno-format-nonliteral'
;;
* ) ;;
@@ -1226,7 +1226,7 @@ if [ $XCC_GCC = true ] ; then
if [ $CROSS = false -a $CC_CPLUSPLUS = true ] ; then
case "$XCC_GCC_VERSION" in
# g++ 3.4 introduced an annoying warning, but has a workaround:
- 3.[4-9]* | 4.*)
+ 3.[4-9]* | 4.* | 5.* | 6.* | 7.* | 8.*)
XCFLAGS=$XCFLAGS' -Wno-invalid-offsetof'
;;
* ) ;;
@@ -1241,7 +1241,7 @@ if [ $XCC_GCC = true ] ; then
# gcc-2.7.2 has a strength-reduction bug (fixed in gcc-2.7.2.1,
# also fixed through the specs file of some Linux distributions).
XCFLAGS=$XCFLAGS' -O2 -fexpensive-optimizations -fno-strength-reduce' ;;
- 2.3.[2-9]* | 2.[4-9]* | 3.* | 4.* | egcs-2.*)
+ 2.3.[2-9]* | 2.[4-9]* | 3.* | 4.* | 5.* | 6.* | 7.* | 8.* | egcs-2.*)
XCFLAGS=$XCFLAGS' -O2 -fexpensive-optimizations' ;;
* )
XCFLAGS=$XCFLAGS' -O' ;;
@@ -1295,7 +1295,7 @@ if [ $XCC_GCC = true ] ; then
esac
fi # with_debug
case "$XCC_GCC_VERSION" in
- 3* | 4*)
+ 3* | 4* | 5* | 6* | 7* | 8*)
# When not optimizing on linux, or with Apple's gcc 4 on MacOS X,
# or with GCC 4 when "gcc -Os" is used:
# C_CODE_ALIGNMENT is wrong. &EVAL-WHEN = 0x806D512
$NetBSD: patch-modules_readline_readline.lisp,v 1.1 2016/09/20 14:10:25 wiz Exp $
rl_readline_state changed from int to unsigned long in readline-7.0.
--- modules/readline/readline.lisp.orig 2010-01-06 22:18:03.000000000 +0000
+++ modules/readline/readline.lisp
@@ -424,7 +424,7 @@ name in ~/.inputrc. This is preferred wa
"The version of this incarnation of the readline library, e.g., 0x0402."))
(def-c-var gnu-readline-p (:name "rl_gnu_readline_p") (:type int)
(:documentation "True if this is real GNU readline."))
-(def-c-var readline-state (:name "rl_readline_state") (:type int)
+(def-c-var readline-state (:name "rl_readline_state") (:type ulong)
(:documentation "Flags word encapsulating the current readline state."))
(def-c-var editing-mode (:name "rl_editing_mode") (:type int)
(:documentation "Says which editing mode readline is currently using.
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=commoncpp2
pkgver=1.8.1
pkgrel=1
pkgdesc="GNU Common C++ 2"
arch=('i686' 'x86_64')
url='http://www.gnu.org/software/commoncpp/'
license=('GPL' 'custom')
depends=('gcc-libs' 'zlib' 'sh')
options=('!libtool' '!makeflags')
source=("http://ftp.gnu.org/pub/gnu/commoncpp/${pkgname}-${pkgver}.tar.gz")
md5sums=('4804b184e609154ba2bc0aa9f61dc6ef')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
sed -i -e '50 a\#include <sys/stat.h>' inc/cc++/applog.h
./configure --prefix=/usr
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
gzip -9 ${pkgdir}/usr/share/info/commoncpp2.info
rm ${pkgdir}/usr/share/info/dir
install -D -m644 COPYING.addendum ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment