Browse Source

xap/scribus: Upgraded to scribus-1.4.0.rc5.

slackware-14.2
Damien Goutte-Gattat 10 years ago
parent
commit
3d7cb4d151
  1. 6
      xap/scribus/doinst.sh
  2. 22
      xap/scribus/fix-paths.diff
  3. 1
      xap/scribus/scribus-1.3.6.tar.bz2.sha1
  4. 32
      xap/scribus/scribus-1.4.0.rc5-fix-paths.diff
  5. 1
      xap/scribus/scribus-1.4.0.rc5.tar.bz2.sha1
  6. 17
      xap/scribus/scribus.SlackBuild

6
xap/scribus/doinst.sh

@ -1,4 +1,8 @@
#!/bin/sh
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database usr/share/mime
/usr/bin/update-mime-database ./usr/share/mime >/dev/null 2>&1
fi
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database ./usr/share/applications >/dev/null 2>&1
fi

22
xap/scribus/fix-paths.diff

@ -1,22 +0,0 @@
diff -Naur scribus-1.3.6.orig/CMakeLists.txt scribus-1.3.6/CMakeLists.txt
--- scribus-1.3.6.orig/CMakeLists.txt 2010-03-15 23:01:54.000000000 +0100
+++ scribus-1.3.6/CMakeLists.txt 2010-05-02 13:20:36.686861057 +0200
@@ -241,15 +241,15 @@
#Setp all the directories we will use
#MAN
CMAKE_POLICY(SET CMP0005 OLD)
-SET(MANDIR "share/man/")
+SET(MANDIR "man/")
SET(SHAREDIR "share/${MAIN_DIR_NAME}${TAG_VERSION}/")
ADD_DEFINITIONS("-DSHAREDIR=\\\"${CMAKE_INSTALL_PREFIX}/${SHAREDIR}\\\"")
#SHARE - use the default on Apple as TAG_VERSION is empty
IF(TAG_VERSION OR BUILD_OSX_BUNDLE)
- SET(DOCDIR "share/doc/${MAIN_DIR_NAME}${TAG_VERSION}/")
+ SET(DOCDIR "doc/${MAIN_DIR_NAME}${TAG_VERSION}/")
ELSE(TAG_VERSION OR BUILD_OSX_BUNDLE)
- SET(DOCDIR "share/doc/${MAIN_DIR_NAME}-${VERSION}/")
+ SET(DOCDIR "doc/${MAIN_DIR_NAME}-${VERSION}/")
ENDIF (TAG_VERSION OR BUILD_OSX_BUNDLE)
ADD_DEFINITIONS("-DDOCDIR=\\\"${CMAKE_INSTALL_PREFIX}/${DOCDIR}\\\"")

1
xap/scribus/scribus-1.3.6.tar.bz2.sha1

@ -1 +0,0 @@
35ceba09bea73b3cb10f38dddc5bc24185df794e scribus-1.3.6.tar.bz2

32
xap/scribus/scribus-1.4.0.rc5-fix-paths.diff

@ -0,0 +1,32 @@
diff -Naur scribus-1.4.0.rc5.orig/CMakeLists.txt scribus-1.4.0.rc5/CMakeLists.txt
--- scribus-1.4.0.rc5.orig/CMakeLists.txt 2011-06-17 23:43:41.000000000 +0200
+++ scribus-1.4.0.rc5/CMakeLists.txt 2011-06-20 22:17:41.369309170 +0200
@@ -251,7 +251,7 @@
#Setp all the directories we will use
#MAN
CMAKE_POLICY(SET CMP0005 OLD)
-SET(MANDIR "share/man/")
+SET(MANDIR "man/")
IF(WANT_VERSIONING)
SET(SHAREDIR "share/${MAIN_DIR_NAME}${TAG_VERSION}/")
ELSE(WANT_VERSIONING)
@@ -261,15 +261,15 @@
#SHARE - use the default on Apple as TAG_VERSION is empty
IF(WIN32 OR OS2)
- SET(DOCDIR "share/doc/")
+ SET(DOCDIR "doc/")
ELSE (WIN32 OR OS2)
IF(TAG_VERSION OR BUILD_OSX_BUNDLE)
- SET(DOCDIR "share/doc/${MAIN_DIR_NAME}${TAG_VERSION}/")
+ SET(DOCDIR "doc/${MAIN_DIR_NAME}${TAG_VERSION}/")
ELSE(TAG_VERSION OR BUILD_OSX_BUNDLE)
IF(NOT WANT_VERSIONING)
- SET(DOCDIR "share/doc/${MAIN_DIR_NAME}/")
+ SET(DOCDIR "doc/${MAIN_DIR_NAME}-${VERSION}/")
ELSE(NOT WANT_VERSIONING)
- SET(DOCDIR "share/doc/${MAIN_DIR_NAME}-${VERSION}/")
+ SET(DOCDIR "doc/${MAIN_DIR_NAME}-${VERSION}/")
ENDIF(NOT WANT_VERSIONING)
ENDIF (TAG_VERSION OR BUILD_OSX_BUNDLE)
ENDIF (WIN32 OR OS2)

1
xap/scribus/scribus-1.4.0.rc5.tar.bz2.sha1

@ -0,0 +1 @@
51ff4646a25656beafc494144eb94d8574fafa8d scribus-1.4.0.rc5.tar.bz2

17
xap/scribus/scribus.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009,2010 Damien Goutte-Gattat
# Copyright (C) 2009,2010,2011 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -26,7 +26,7 @@
# Source package infos
NAMESRC=${NAMESRC:-scribus}
VERSION=${VERSION:-1.3.6}
VERSION=${VERSION:-1.4.0.rc5}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-http://downloads.sourceforge.net/scribus/$ARCHIVE}
@ -76,18 +76,17 @@ if [ ! -r $ARCHIVE ]; then
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 2)
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
echo $NAME
cd $NAME
patch -p 1 < $CWD/fix-paths.diff
patch -p 1 < $CWD/scribus-1.4.0.rc5-fix-paths.diff
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DWANT_LIB64=yes
cmake -DCMAKE_INSTALL_PREFIX=/usr -DWANT_LIB64=yes
make -j $JOBS
make install DESTDIR=$PKG
@ -98,6 +97,12 @@ find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
# Compress man pages
find $PKG/usr/man -type f -exec gzip -9 {} \;
# Move desktop file
mkdir -p $PKG/usr/share/applications
mv $PKG/usr/share/mimelnk/application/vnd.scribus.desktop \
$PKG/usr/share/applications
rm -rf $PKG/usr/share/mimelnk
# Copy slack-desc and doinst.sh files
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
install -m 755 $CWD/doinst.sh $PKG/install/doinst.sh

Loading…
Cancel
Save