VectorLinux
April 23, 2014, 06:55:26 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: 20091203 inkscape-0.47 [VL6.0]  (Read 2075 times)
toothandnail
Moderator
Vectorian
*****
Posts: 2527


« on: December 03, 2009, 05:33:06 am »

hata_ph has built a new Inkscape package for VectorLinux 6.0.
   
      
   
Code:
inkscape: inkscape (Open Source vector graphics editor)
inkscape:
inkscape: Inkscape is an open source drawing tool with capabilities similar to
inkscape: Illustrator, Freehand, and CorelDraw that uses the W3C standard scalable
inkscape: vector graphics  format (SVG).
inkscape:
inkscape:
inkscape: License: GPL2
inkscape: Authors: The Inkscape Team
inkscape: Website: http://www.inkscape.org
   
   After testing this package please stop back here and let us know how it works for you.
   
Logged
pevsner
Member
*
Posts: 94


« Reply #1 on: December 03, 2009, 07:32:14 pm »

The link seems to point to the source rather than compiled package.
Logged
GrannyGeek
Packager
Vectorian
****
Posts: 2567


« Reply #2 on: December 03, 2009, 08:01:47 pm »

The link seems to point to the source rather than compiled package.

The link does point to the source. To get the compiled package, enable the testing repo in Gslapt, update the package list with Gslapt, and Inkscape 0.47 will show up in testing. Click on 0.47 and then Execute.
--GrannyGeek
Logged

Registered Linux User #397786

Happily running VL 7 Gold on  a Sempron LE-1300 desktop (2.3 GHz), 4 G RAM,  GeForce 6150 SE onboard graphics and on an HP Pavilion dv7 i7, 6 gigs, Intel 2nd Generation Integrated Graphics Controller
pevsner
Member
*
Posts: 94


« Reply #3 on: December 04, 2009, 06:21:40 pm »

Hi GG,

It doesn't come up in gslapt for me. I have, and had (http://www.mirrorservice.org/sites/vectorlinux.com/veclinux-6.0/testing/) ticked, I assumed the mirrors got updated?
I have actually compiled my own 0.47 version. Just an observation.
Logged
hata_ph
Moderator
Vectorian
*****
Posts: 3212


-- Just being myself --


« Reply #4 on: December 04, 2009, 07:47:05 pm »

this is the actual link...

http://vectorlinux.osuosl.org/veclinux-6.0/testing/
Logged
GrannyGeek
Packager
Vectorian
****
Posts: 2567


« Reply #5 on: December 04, 2009, 09:36:29 pm »

I've installed the package on two computers. Everything seems okay so far.
--GrannyGeek
Logged

Registered Linux User #397786

Happily running VL 7 Gold on  a Sempron LE-1300 desktop (2.3 GHz), 4 G RAM,  GeForce 6150 SE onboard graphics and on an HP Pavilion dv7 i7, 6 gigs, Intel 2nd Generation Integrated Graphics Controller
GrannyGeek
Packager
Vectorian
****
Posts: 2567


« Reply #6 on: December 05, 2009, 06:49:25 pm »

By default, Inkscape does not embed imported images. There is an option to embed imported JPG and PNG images in the Extensions menu, Images, Embed Images. However, this won't work unless you have the lxml package installed.

The inkscape 0.47 package doesn't pull down this package. I think it would be nice if it did because I think many users would like to have this option whether or not they use it much.
--GrannyGeek
Logged

Registered Linux User #397786

Happily running VL 7 Gold on  a Sempron LE-1300 desktop (2.3 GHz), 4 G RAM,  GeForce 6150 SE onboard graphics and on an HP Pavilion dv7 i7, 6 gigs, Intel 2nd Generation Integrated Graphics Controller
hata_ph
Moderator
Vectorian
*****
Posts: 3212


-- Just being myself --


« Reply #7 on: December 06, 2009, 05:27:17 pm »

I see what you mean, but lxml is not a dependency that require to build inkscape. Including lxml or other "optional" packages it seem will bloated the system. But I did try to repackage inkscape with lxml installed, but it did not enlist lxml as an dependency....anyone know how to do it?
I have attached my slackbuild..

Quote
#!/usr/bin/bash
# This script assumes it will be launched within "/NAME/VERSION/src" dir.
# With all sources in "src" Your Vector Linux .tlz package, slack-desc,
# and slack-required will be found in "VERSION" dir. The extraction and
# build will be in a temp dir created in "NAME" dir, and then removed on exit.
# Comment out second to last line to keep this dir intact.
#
# This Template was compiled from the contributions of many users of the Vector
# Linux forum at http://forum.vectorlinux.com and from tidbits collected
# from all over the internet.
#
# Generated by sbbuilder-0.4.12, written by Rodrigo Bistolfi
# (rbistolfi) and Raimon Grau Cuscó (Kidd) for VectorLinux.
#
# Please put your name below if you add some original scripting lines.
# AUTHORS =

NAME="inkscape"            #Enter package Name!
VERSION=${VERSION:-"0.47"}      #Enter package Version!
VER=$(echo $VERSION|sed 's/-/_/') #this fixes - in version
VL_PACKAGER=${VL_PACKAGER:-"hata_ph"}   #Enter your Name!
LINK=${LINK:-""}  #Enter URL for package here!


#SYSTEM VARIABLES
#----------------------------------------------------------------------------
BUILDNUM=${BUILDNUM:-"2"}
VL_VERSION=${VL_VERSION:-"$(ls /var/log/packages/|grep vlconfig2|cut -d "-" -f4|cut -c 2-5)"}
BUILD=${BUILD:-"$BUILDNUM""$VL_VERSION"}
ARCH=${ARCH:-"$(uname -m)"}
CONFIG_OPTIONS=${CONFIG_OPTIONS:-""}
LDFLAG_OPTIONS=${LDFLAG_OPTIONS:-""}
ADDRB=${ADDRB:-""} #Add deps that need to be added to the slack-required file here
EXRB=${EXRB:-""} #Add deps that need to be excluded from the slack-required file here
#----------------------------------------------------------------------------


#SETUP PACKAGING ENVIRONMENT
#--------------------------------------------
CWD=$(pwd)
cd ../
RELEASEDIR=$(pwd)
cd $CWD
mkdir -p $RELEASEDIR/tmp
TMP=$RELEASEDIR/tmp
PKG=$TMP/package-$NAME
#--------------------------------------------



if [ $UID != 0 ]; then
   echo "You are not authorized to run this script. Please login as root"
   exit 1
fi

if [ ! -x /usr/bin/requiredbuilder ]; then
   echo "Requiredbuilder not installed, or not executable."
   exit 1
fi

if [ $VL_PACKAGER = "YOURNAME" ]; then
   echo 'Who are you?
   Please edit VL_PACKAGER=${VL_PACKAGER:-YOURNAME} in this script.
   Change the word "YOURNAME" to your VectorLinux packager name.
   You may also export VL_PACKAGER, or call this script with
   VL_PACKAGER="YOUR NAME HERE"'
   exit 1
fi


#CFLAGS SETUP
#--------------------------------------------
if [[ "$ARCH" = i?86 ]]; then
  ARCH=i586
  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
  CONFIGURE_TRIPLET="i486-slackware-linux"
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fpic"
  CONFIGURE_TRIPLET="x86_64-vlocity-linux"
elif [ "$ARCH" = "powerpc" ]; then
  SLKCFLAGS="-O2"
  CONFIGURE_TRIPLET="powerpc-vlocity-linux"
fi

export CFLAGS="$SLKCFLAGS $CFLAG_OPTIONS"
export CXXFLAGS=$CFLAGS
export LDFLAGS="$LDFLAGS $LDFLAG_OPTIONS"
#--------------------------------------------


#GET THE SOURCE
#--------------------------------------------
for SRC in $(echo $LINK);do
if [ ! -f $CWD/$(basename $SRC) ]
then
        wget -c $SRC
fi
done
#--------------------------------------------


rm -rf $PKG
mkdir -p $PKG
cd $TMP
rm -rf $NAME-$VERSION


#EXTRACT SOURCES
#-----------------------------------------------------
echo "Extracting source..."
tar xvf $CWD/$NAME-$VERSION.tar.* || exit 1
#-----------------------------------------------------


cd $TMP/$NAME-$VERSION

# Put any Patches here
#-----------------------------------------------------
#patch -p1 <
#-----------------------------------------------------


#SET PERMISSIONS
#-----------------------------------------
echo "Setting permissions..."
chown -R root:root .
find . -perm 664 -exec chmod 644 {} \;
find . -perm 777 -exec chmod 755 {} \;
find . -perm 2777 -exec chmod 755 {} \;
find . -perm 775 -exec chmod 755 {} \;
find . -perm 2755 -exec chmod 755 {} \;
find . -perm 774 -exec chmod 644 {} \;
find . -perm 666 -exec chmod 644 {} \;
find . -perm 600 -exec chmod 644 {} \;
find . -perm 444 -exec chmod 644 {} \;
find . -perm 400 -exec chmod 644 {} \;
find . -perm 440 -exec chmod 644 {} \;
find . -perm 511 -exec chmod 755 {} \;
find . -perm 711 -exec chmod 755 {} \;
find . -perm 555 -exec chmod 755 {} \;
#-----------------------------------------



#CONFIGURE & MAKE
#----------------------------------------------------------------------
# If you are building a KDE-related app, then change the following
# arguments in the script below:
# --prefix=$(kde-config -prefix) \
# --sysconfdir=/etc/kde \
#
# Making these changes will ensure that your package will build in the
# correct path and that it will work seamlessly within the KDE environment.
#
#-----------------------------------------------------------------------

echo "Configuring source..."
./configure --prefix=/usr \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --with-included-gettext \
  --disable-debug \
  --program-prefix="" \
  --program-suffix="" \
  --build=$CONFIGURE_TRIPLET \
  #--with-qt4-dir=/usr/lib/qt4 \
  $CONFIG_OPTIONS || exit 1

make || exit 1

make install DESTDIR=$PKG || exit




#######################################################################
#Miscellenious tweaks and things outside a normal ./configure go here #
#######################################################################

mkdir -p $PKG/usr/share/applications
cp $CWD/$NAME.desktop $PKG/usr/share/applications/$NAME.desktop
mkdir -p $PKG/usr/share/pixmaps
cp $CWD/$NAME.png $PKG/usr/share/pixmaps/$NAME.png

mkdir -p $PKG/usr/doc/$NAME-$VERSION
cp -a AUTHORS COPYING ChangeLog Credits MANIFEST README TODO \
$PKG/usr/doc/$NAME-$VERSION
cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild

#----------------------------------------------------------------------

if [ -d $PKG/usr/share/man ] ; then
mkdir -p $PKG/usr/man
mv $PKG/usr/share/man/* $PKG/usr/man
rm -rf $PKG/usr/share/man
fi
find $PKG/usr/man -type f -exec gzip -9 {} \;

if [ -d $PKG/usr/share/info ] ; then
mkdir -p $PKG/usr/info
mv $PKG/usr/share/info/* $PKG/usr/info
rm -rf $PKG/usr/share/info
fi

find $PKG/usr/info -type f -exec gzip -9 {} \;
mkdir -p $PKG/install
if [ -d $PKG/usr/info ] ; then
cat >> $PKG/install/doinst.sh << EOF
cd usr/info
if [ -f dir ]; then
    rm dir
fi
if [ -f dir.gz ]; then
    rm dir.gz
fi
for i in *.info.gz
        do
        install-info $i dir
    done
EOF
fi

mkdir -p $PKG/install


#if there is a slack-desc in src dir use it
if test -f $CWD/slack-desc; then
cp $CWD/slack-desc $RELEASEDIR/slack-desc
else
# This creates the white space in front of "handy-ruler" in slack-desc below.

LENGTH=$(expr length "$NAME")
SPACES=0
SHIM=""
until [ "$SPACES" = "$LENGTH" ]; do
SHIM="$SHIM "
let SPACES=$SPACES+1
done

# Fill in the package summary between the () below.
# Then package the description, License, Author and Website.
# There may be no more then 11 $NAME: lines in a valid slack-desc.

cat > $RELEASEDIR/slack-desc << EOF
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in.  You must
# make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':'.

$SHIM|-----handy-ruler------------------------------------------------------|
$NAME: $NAME (Open Source vector graphics editor)
$NAME:
$NAME: Inkscape is an open source drawing tool with capabilities similar to
$NAME: Illustrator, Freehand, and CorelDraw that uses the W3C standard scalable
$NAME: vector graphics  format (SVG).
$NAME:
$NAME:
$NAME: License: GPL2
$NAME: Authors: The Inkscape Team
$NAME: Website: http://www.inkscape.org

EOF
fi
cat >> $RELEASEDIR/slack-desc << EOF



#----------------------------------------
BUILDDATE: $(date)
PACKAGER:  $VL_PACKAGER
HOST:      $(uname -srm)
DISTRO:    $(cat /etc/vector-version)
CFLAGS:    $CFLAGS
LDFLAGS:   $LDFLAGS
CONFIGURE: $(awk "/\.\/configure\ /" $TMP/$NAME-$VERSION/config.log)

EOF

cat $RELEASEDIR/slack-desc > $PKG/install/slack-desc

#STRIPPING
#------------------------------------------------------------------------------------------------------------------
cd $PKG
echo " "
echo "Stripping...."
echo " "
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
#------------------------------------------------------------------------------------------------------------------


#FINISH PACKAGE
#--------------------------------------------------------------
echo "Finding dependencies..."
ADD="$ADDRB" EXCLUDE="$EXRB" requiredbuilder -v -y -s $RELEASEDIR $PKG
echo "Creating package $NAME-$VERSION-$ARCH-$BUILD.tlz"
makepkg -l y -c n $RELEASEDIR/$NAME-$VERSION-$ARCH-$BUILD.tlz

cd $CWD
echo "Cleaning up temp files..." && rm -rf $TMP
echo "Package Complete"
#--------------------------------------------------------------

# vim: set tabstop=4 shiftwidth=4 foldmethod=marker : ##
« Last Edit: December 06, 2009, 05:32:07 pm by hata_ph » Logged
toothandnail
Moderator
Vectorian
*****
Posts: 2527


« Reply #8 on: December 07, 2009, 04:44:18 am »

The easiest way to add a dependency which is not picked up by requiredbuilder is to use sbbuiler to generate the SlackBuild - it has an option to add deps -

Code:
sbbuilder --add=<depname>,<depname>

Smiley I've not done it for a while, can't recall what it adds to the SlackBuild.

paul.
Logged
rbistolfi
Packager
Vectorian
****
Posts: 2265


« Reply #9 on: December 07, 2009, 09:11:58 am »

you can also use this section of the slackbuild:

Code:
ADDRB=${ADDRB:-""} #Add deps that need to be added to the slack-required file here

You would have to make it look like this:
Code:
ADDRB=${ADDRB:-"lxml >= 1.1-i586-1vl60"} #Add deps that need to be added to the slack-required file here

Note that the version number I used is just an example.
Logged

"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!
hata_ph
Moderator
Vectorian
*****
Posts: 3212


-- Just being myself --


« Reply #10 on: December 07, 2009, 05:05:18 pm »

you can also use this section of the slackbuild:

Code:
ADDRB=${ADDRB:-""} #Add deps that need to be added to the slack-required file here

You would have to make it look like this:
Code:
ADDRB=${ADDRB:-"lxml >= 1.1-i586-1vl60"} #Add deps that need to be added to the slack-required file here

Note that the version number I used is just an example.

Great, how about if I want more then 1 package to be included?
Logged
hata_ph
Moderator
Vectorian
*****
Posts: 3212


-- Just being myself --


« Reply #11 on: December 07, 2009, 06:35:41 pm »

Ok...I have repackage inkscape with lxml as it dependency....have upload the 2nd version to the repo. Pls take note. Wink

Quote
ImageMagick >= 6.4.1_10-i586-1vl60 | imagemagick >= 6.4.1_10-i586-1vl60
aaa_base >= 12.1.0-noarch-2 | glibc-solibs >= 2.7-i486-10
aspell >= 0.60.6-i586-1vl60
atk >= 1.22.0-i486-1
bzip2 >= 1.0.5-i486-1
cairo >= 1.6.4-i586-1vl60
cairomm >= 1.4.8-i586-2gsb
cxxlibs >= 6.0.9-i486-1 | gcc-g++ >= 4.2.3-i486-1
expat >= 2.0.1-i486-1
fontconfig >= 2.4.2-i486-2
freetype >= 2.3.9-i586-1vl60
gcc >= 4.2.3-i486-1
glib2 >= 2.16.3-i586-1gsb
glibmm >= 2.16.1-i586-1gsb
gsl >= 1.11-i586-1vl60
gtk+2 >= 2.12.9-i486-1
gtkmm >= 2.12.7-i586-1gsb
gtkspell >= 2.0.11-i586-2gsb
lcms >= 1.17-i486-1
libICE >= 1.0.4-i486-1
libSM >= 1.0.3-i486-1
libX11 >= 1.1.4-i486-1
libXau >= 1.0.3-i486-1
libXcomposite >= 0.4.0-i486-1
libXcursor >= 1.1.9-i486-1
libXdamage >= 1.1.1-i486-1
libXdmcp >= 1.0.2-i486-1
libXext >= 1.0.4-i486-1
libXfixes >= 4.0.3-i486-1
libXi >= 1.1.3-i486-1
libXinerama >= 1.0.3-i486-1
libXrandr >= 1.2.2-i486-1
libXrender >= 0.9.4-i486-1
libXt >= 1.0.5-i486-1
libgc >= 7.0-i586-2gsb
libjpeg >= 6b-i486-5
libpng >= 1.2.35-i586-1vl60
libsigc++ >= 2.2.2-i586-2gsb
libtiff >= 3.8.2-i486-3
libxcb >= 1.0-i486-2
libxml2 >= 2.6.32-i486-1_slack12.1
libxslt >= 1.1.22-i486-1
lxml >= 2.1.5-i586-1vl60
pango >= 1.20.0-i486-1
pixman >= 0.10.0-i486-4
poppler >= 0.6.4-i486-1
popt >= 1.7-i486-2
zlib >= 1.2.3-i486-2
Logged
hata_ph
Moderator
Vectorian
*****
Posts: 3212


-- Just being myself --


« Reply #12 on: December 10, 2009, 12:33:47 am »

you can also use this section of the slackbuild:

Code:
ADDRB=${ADDRB:-""} #Add deps that need to be added to the slack-required file here

You would have to make it look like this:
Code:
ADDRB=${ADDRB:-"lxml >= 1.1-i586-1vl60"} #Add deps that need to be added to the slack-required file here

Note that the version number I used is just an example.

Great, how about if I want more then 1 package to be included?

Any one know how to add more then 1 packages as dependencies?
Logged
rbistolfi
Packager
Vectorian
****
Posts: 2265


« Reply #13 on: December 10, 2009, 08:38:08 am »

you can also use this section of the slackbuild:

Code:
ADDRB=${ADDRB:-""} #Add deps that need to be added to the slack-required file here

You would have to make it look like this:
Code:
ADDRB=${ADDRB:-"lxml >= 1.1-i586-1vl60"} #Add deps that need to be added to the slack-required file here

Note that the version number I used is just an example.

Great, how about if I want more then 1 package to be included?

Any one know how to add more then 1 packages as dependencies?

You just append them to the same variable separated by a ",".
Logged

"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!
hata_ph
Moderator
Vectorian
*****
Posts: 3212


-- Just being myself --


« Reply #14 on: December 10, 2009, 05:10:33 pm »

you can also use this section of the slackbuild:

Code:
ADDRB=${ADDRB:-""} #Add deps that need to be added to the slack-required file here

You would have to make it look like this:
Code:
ADDRB=${ADDRB:-"lxml >= 1.1-i586-1vl60"} #Add deps that need to be added to the slack-required file here

Note that the version number I used is just an example.

Great, how about if I want more then 1 package to be included?

Any one know how to add more then 1 packages as dependencies?

You just append them to the same variable separated by a ",".

Hey, thanks...it work Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!