aboutsummaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorlarryhaja <larryhaja@gmail.com>2013-11-13 19:29:30 -0800
committerRobby Workman <rworkman@slackbuilds.org>2013-11-14 00:06:32 -0600
commit378397a0f001538cd4c95f978513101d560c4178 (patch)
tree7108b2ca43798c4aa45259533f40665fd23f5e5f /development
parentdaa1ffe34aa01826d99964ac7761626a89d2035b (diff)
development/xmlcopyeditor: Upgraded to 1.2.0.11
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/xmlcopyeditor/xmlcopyeditor.SlackBuild44
-rw-r--r--development/xmlcopyeditor/xmlcopyeditor.info6
2 files changed, 33 insertions, 17 deletions
diff --git a/development/xmlcopyeditor/xmlcopyeditor.SlackBuild b/development/xmlcopyeditor/xmlcopyeditor.SlackBuild
index 22a499b43ae8..144f7b0af877 100644
--- a/development/xmlcopyeditor/xmlcopyeditor.SlackBuild
+++ b/development/xmlcopyeditor/xmlcopyeditor.SlackBuild
@@ -2,19 +2,35 @@
# Slackware build script for xmlcopyeditor
-# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
+# Copyright 2009-2013 Larry Hajali <larryhaja[at]gmail[dot]com>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=xmlcopyeditor
-VERSION=${VERSION:-1.2.0.6}
+VERSION=${VERSION:-1.2.0.11}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -44,7 +60,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION-2.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -53,17 +69,19 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Fix end-of-line formatting.
+for FILE in $(find . -type f ! -name "*\.png" | xargs grep -Pl '\r$'); do
+ sed -i 's/\r//g' $FILE
+done
+
+# Fix .desktop item.
+sed -i -e 's|\.png||' -e 's|Application;||' -e 's|TextEditor;||' src/$PRGNAM.desktop
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-CPPFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --localedir=/usr/share/locale \
--enable-static=no \
--build=$ARCH-slackware-linux
@@ -74,9 +92,7 @@ find $PKG | xargs 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 INSTALL \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS ChangeLog gpl-2.0.txt INSTALL $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/development/xmlcopyeditor/xmlcopyeditor.info b/development/xmlcopyeditor/xmlcopyeditor.info
index bc5f05150dc3..36c0bfefda8a 100644
--- a/development/xmlcopyeditor/xmlcopyeditor.info
+++ b/development/xmlcopyeditor/xmlcopyeditor.info
@@ -1,8 +1,8 @@
PRGNAM="xmlcopyeditor"
-VERSION="1.2.0.6"
+VERSION="1.2.0.11"
HOMEPAGE="http://xml-copy-editor.sourceforge.net/"
-DOWNLOAD="http://downloads.sourceforge.net/sourceforge/xml-copy-editor/xmlcopyeditor-1.2.0.6-2.tar.gz"
-MD5SUM="fc92fa4767099e1bb8c076f91b038f1c"
+DOWNLOAD="http://downloads.sourceforge.net/sourceforge/xml-copy-editor/xmlcopyeditor-1.2.0.11.tar.gz"
+MD5SUM="326e49f374f0e9d6fda23506c03b0c70"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="wxPython xerces-c"