LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-01-2008, 02:57 PM   #1
brixtoncalling
Member
 
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Rep: Reputation: 67
XeTeX


Hey,
Has anyone had any success in creating a package from the XeTeX sources? It comes with a custobm uild-xetex and install-xetex rather than the standard configure; make; make install.

I use src2pkg and trackinstall to make packages but simply running trackinstall -i='sh install-xetex' doesn't do the trick. I ended up building a package using the -JAIL option but it doesn't work properly.

Any tips?
 
Old 09-02-2008, 02:33 AM   #2
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 419

Rep: Reputation: 45
Hmm, I haven't tried to package XeTeX but install the whole TexLive distribution which contain ready-to-run XeTeX and it's dependencies. It will install all the stuffs into /usr/local/texlive by default and is rather easy to remove. The only side effect is to download a 2.4GB DVD image. You could have a try.
 
Old 09-02-2008, 02:48 AM   #3
deadbeat
LQ Newbie
 
Registered: Jun 2007
Distribution: Slamd64
Posts: 18

Rep: Reputation: 0
Is texlive much bigeer in size than tetex?
I wonder if its gonna replace it in slackware at some point..
 
Old 09-02-2008, 03:24 AM   #4
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 734

Rep: Reputation: 37
Quote:
Originally Posted by deadbeat View Post
Is texlive much bigeer in size than tetex?
I wonder if its gonna replace it in slackware at some point..
I recently wrote to Patrick about that issue. He replied that it might be considered in the future. The great problem is that texlive is too big to be included untrimmed. If you are interested in texlive, I have made it into a package with a scriptq which I could send to you or post here. It works perfectly on my system. These days texlive 2008 will come out, so I will bother to package it as well.
 
Old 09-02-2008, 04:26 AM   #5
brixtoncalling
Member
 
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Original Poster
Rep: Reputation: 67
I looked into texlive but it didn't look much more straightforward to install than XeTeX. If there's a script for compiling I'd like to take a look at it though. Thanks for all the answers B.
 
Old 09-02-2008, 07:29 AM   #6
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 419

Rep: Reputation: 45
Quote:
Originally Posted by tramni1980 View Post
I recently wrote to Patrick about that issue. He replied that it might be considered in the future. The great problem is that texlive is too big to be included untrimmed. If you are interested in texlive, I have made it into a package with a scriptq which I could send to you or post here. It works perfectly on my system. These days texlive 2008 will come out, so I will bother to package it as well.
texlive 2008 have already come out as I'm using it now~The fully installed texlive2008 is 1.6GB big....
 
Old 09-02-2008, 10:14 AM   #7
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 734

Rep: Reputation: 37
Quote:
Originally Posted by brixtoncalling View Post
I looked into texlive but it didn't look much more straightforward to install than XeTeX. If there's a script for compiling I'd like to take a look at it though. Thanks for all the answers B.
Ok, here follows my texlive.SlackBuild script. I used it to successfully build texlive-2007 package. Probably it will be as successful to build texlive-2008 as well.

#!/bin/sh

PRGNAM=texlive
VERSION=2007.02.12
PKG_VERSION=$VERSION
ARCH=${ARCH:-i386}
BUILD=${BUILD:-1}
TAG=${TAG:-_mai}
CWD=$(pwd)
PKG="/home/marto/build/tmp/package-$PRGNAM"
OUTPUT=${OUTPUT:-/home/marto/build/packages}

rm -rf $PKG
mkdir -p $PKG $OUTPUT
export TEXLIVE_INSTALL_PREFIX=/usr/share
export TEXLIVE_INSTALL_TEXDIR=/usr/share/texmf
export TEXLIVE_INSTALL_TEXMFLOCAL=/usr/share/texmf-local
export TEXLIVE_INSTALL_TEXMFSYSVAR=/usr/share/texmf-var
sh /mnt/cdrw/install-tl.sh || exit 1

cd /usr/share/texmf || exit 1
echo "Adjusting directory structure:"
mv bin/i386-linux/* bin
rmdir bin/i386-linux
mv texmf/* .
rmdir texmf
cp -R texmf-var /usr/share
rm -rf texmf-var
mv texmf-dist /usr/share
mv texmf-doc /usr/share

PATH="$PATH:/usr/share/texmf/bin"
if [ ! -r /usr/share/texmf/bin/latex ]; then
texconfig-sys init
fi
texconfig-sys confall
texconfig-sys dvips paper letter
texconfig-sys xdvi paper us
texconfig-sys mode ljfour
texconfig-sys dvips paper a4
texconfig-sys xdvi paper a4
texconfig-sys dvips printcmd -
texconfig-sys dvips add bjc600
texconfig-sys dvips add stcolor
texconfig-sys dvips add deskjet
texconfig-sys dvips add ljet4
texconfig-sys dvips -P bjc600 mode canonbjc
texconfig-sys dvips -P stcolor mode epstylus
texconfig-sys dvips -P deskjet mode deskjet
texconfig-sys dvips -P ljet4 mode ljfour
texconfig-sys font ro
texconfig-sys rehash

# Discard local configurations:
if [ -e /root/.texmf-config ]; then
mv /root/.texmf-config /root/.texmf-config-$(mcookie)
echo "/root/.texmf-config moved out of the way... you may wish"
echo "to purge any /root/.texmf-config-* directories if the"
echo "cruft heap gets too large."
fi

cd $PKG
mkdir -p usr/share
echo "Moving files from system directories into package texlive structure:"
mv /usr/share/texmf usr/share
mv /usr/share/texmf-var usr/share
mv /usr/share/texmf-dist usr/share
mv /usr/share/texmf-local usr/share
mv /usr/share/texmf-doc usr/share

echo "Adjusting permissions:"
chown -R root:root .
find . -type f -perm 666 -exec chmod 644 {} \;
chmod 0755 usr/share/texmf-var
find usr/share/texmf-var -type f -exec chmod 0644 {} \;
find usr/share/texmf-var -type d -exec chmod 0755 {} \;

mkdir -p etc/profile.d
cd etc/profile.d
cat > texlive.sh << EOF
PATH="$PATH:/usr/share/texmf/bin"
MANPATH="$MANPATH:/usr/share/texmf/doc/man"
EOF
cat > texlive.csh << EOF
setenv PATH $PATH:/usr/share/texmf/bin
setenv MANPATH=$MANPATH:/usr/share/texmf/doc/man
EOF
chmod 0755 texlive.*sh

echo "Stripping everything:"
( cd $PKG
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
)

# Compress man pages:
( cd $PKG/usr/share/texmf/doc/man
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)

# Compress info pages:
( cd $PKG/usr/share/texmf/doc/info
rm -f dir
gzip -9 *
)


mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cd $PKG/usr/doc
ln -sf /usr/share/texmf/doc $PRGNAM-$VERSION

# Install script:
mkdir -p $PKG/install
cd $PKG/install
cat > 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 ':'.

|-----handy-ruler------------------------------------------------------|
texlive: texlive (the TeX Live distribution)
texlive:
texlive: TeX Live is an easy way to get up and running with TeX. It provides a
texlive: comprehensive TeX system which includes all the major TeX-related
texlive: programs, macro packages, and fonts that are free software, including
texlive: support for many languages around the world. This package uses the
texlive: "TeX Live full scheme".
texlive:
texlive: Learn more about TeX Live at:
texlive: http://www.tug.org/texlive/
texlive:
EOF


cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERSION-$ARCH-$BUILD$TAG.tgz
 
Old 09-02-2008, 12:19 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
XeTeX leaves a filelist with the install result
in 'xetex-0.996/Work/xetex-installed-files'

So I made a textfile in /var/log/packages from that :
Quote:
PACKAGE NAME: xetex-0.996-i386-1
COMPRESSED PACKAGE SIZE:
UNCOMPRESSED PACKAGE SIZE:
PACKAGE LOCATION:
PACKAGE DESCRIPTION:
xetex: xetex
xetex:
xetex: XeTeX is a TeX typesetting engine using Unicode and supporting
xetex: modern font technologies such as OpenType or Apple Advanced
xetex: Typography. It is written and maintained by Jonathan Kew and
xetex: distributed under the X11 free software license.
xetex:
xetex:
FILE LIST:
./
/usr/share/texmf/bin/xetex
/usr/sha.. ..(( and another 85 files ... ))
and used the "Create" function in the old "pkgtool2"
(got it from Vector Linux ?) to create a package.
pkgtool2, a "new" link here
http://web.grizmin.org/linux/pkgtools/ Dead link ?
Worked 2009 , not working now, 2010. Well then, found this
http://www.filewatcher.com/b/ftp/ftp.../RPMS.2.3.html

ftp://ftp.tu-chemnitz.de/.SAN0/pub/l...0.9-1.i386.rpm
.....

Last edited by knudfl; 04-08-2010 at 11:39 AM.
 
Old 09-03-2008, 12:17 AM   #9
brixtoncalling
Member
 
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Original Poster
Rep: Reputation: 67
Thanks for the SlackBuild and for the XeTeX install tip.
 
  


Reply

Tags
latex, texlive


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 02:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration