Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31657 - New ebuild: cstetex
Summary: New ebuild: cstetex
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-10-21 01:13 UTC by Jaromir Malenko
Modified: 2017-10-29 20:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
New ebuild (cstetex-2.0.2.tar,90.00 KB, application/x-tar)
2003-10-21 01:18 UTC, Jaromir Malenko
Details
I added some corrections. (cstetex.tar,80.00 KB, application/x-tar)
2003-10-24 01:55 UTC, Jaromir Malenko
Details
Prevents cstetex from being merged while tetex is already merged. (cstetex.tar,80.00 KB, application/x-tar)
2003-10-24 06:41 UTC, Jaromir Malenko
Details
Now generates pdfcs* formats too. (cstetex.tar,80.00 KB, application/x-tar)
2003-10-28 23:42 UTC, Jaromir Malenko
Details
Tests for Czech formats. (cstetex-tests.tar,10.00 KB, application/x-tar)
2003-10-29 14:06 UTC, Jaromir Malenko
Details
Created tetex eclass. Tetex and cstetex inherite it. (all.tar,50.00 KB, application/x-tar)
2003-11-01 07:57 UTC, Jaromir Malenko
Details
New ebuilds: csindex and vlna (csindex+vlna.tar,20.00 KB, application/x-tar)
2003-11-04 00:37 UTC, Jaromir Malenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Malenko 2003-10-21 01:13:09 UTC
a complete TeX distribution with Czech and Slovak support. Based on tetex 
ebuild, adds support for Czech and Slovak lnaguages. 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.



emerge --info cstetex 
 
Portage 2.0.49-r10 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 
2.4.20-gentoo-r7) 
================================================================= 
System uname: 2.4.20-gentoo-r7 i686 AMD Athlon(tm) Processor 
Gentoo Base System version 1.4.3.10p1 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-tbird -O3 -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config 
/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d" 
CXXFLAGS="-march=athlon-tbird -O3 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="sandbox ccache autoaddcvs" 
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo 
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ 
http://ftp.uni-erlangen.de/pub/mirrors/gentoo 
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/home/jaro/usr/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="oss cups encode foomaticdb libg++ mad mikmod xv zlib gdbm berkdb slang 
sdl tcpd pam libwww esd motif 3dnow acpi afs -alsa apache2 apm arts avi crypt 
cscope doc dvd gif gpm -gnome gtk gtk2 imap imlib java jpeg kde kerberos lcms 
ldap mbox mmx mozilla mpeg mysql ncurses nhc98 nls nocd oggvorbis opengl 
pdflib perl plotutils png postgres python qt quicktime readline samba spell 
sse ssl svga tetex tiff truetype usb videos X xml xml2 xmms x86"
Comment 1 Jaromir Malenko 2003-10-21 01:18:11 UTC
Created attachment 19573 [details]
New ebuild

Tar includes ebuild, Changelog, Manifest, metadata.xml and patches in files
directory.
Comment 2 Mike Gardiner (RETIRED) gentoo-dev 2003-10-21 21:15:07 UTC
Hrmm, we can ebuild this, but I have no experience with czech or slovak languages,
so we'll need to find a tester.
Comment 3 Jaromir Malenko 2003-10-24 01:55:54 UTC
Created attachment 19719 [details]
I added some corrections.
Comment 4 Jaromir Malenko 2003-10-24 06:41:34 UTC
Created attachment 19735 [details]
Prevents cstetex from being merged while tetex is already merged.
Comment 5 Rudo Thomas 2003-10-26 09:47:10 UTC
The latest one (attachment #19735 [details]) work just right for me.
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-10-28 02:29:03 UTC
Now I come to thinkg that we better create tetex.eclass because
app-text/tetex-2.0.2*, app-text/ptex-2.0.2* and app-text/cstetex-2.0.2* 
have almost the same compilation procedure. Obz, do you agree with the
idea? If so, I'll create one based on tetex-2.0.2-r1, ptex-2.0.2-r1
and attachment #19735 [details].

Also, could anyone attache sample Czech and Slovak tex files which we
can test on the ebuild? More testers will also be appreciated :)
Comment 7 Jaromir Malenko 2003-10-28 23:42:55 UTC
Created attachment 19921 [details]
Now generates pdfcs* formats too.
Comment 8 Jaromir Malenko 2003-10-29 14:06:22 UTC
Created attachment 19948 [details]
Tests for Czech formats.
Comment 9 Jaromir Malenko 2003-11-01 07:57:36 UTC
Created attachment 20060 [details]
Created tetex eclass. Tetex and cstetex inherite it.

I created tetex.eclass based on tetex.ebuild. Then I changed tetex.ebuild
so it
uses this eclass and renamed it to tetex_.ebuild for testing purposes. The
cstetex.ebuild uses this elass too.
Comment 10 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-11-03 08:41:16 UTC
Thanks for your hard work! I'll look into it and integrate app-tetex/ptex.
Anyhow, would you mind if I add Gentoo copyright at the top of your eclass?
This is for protecting Gentoo development and if you feel curious about it,
please search gentoo-dev mailing list and find threads related to copyright.
Comment 11 Jaromir Malenko 2003-11-04 00:05:23 UTC
I don't mind, if you put the Gentoo copyright anywhere. And it would be nice
if you put a note like 
	Author: Jaromir Malenko <malenko@email.cz?
into cstetex-2.0.2.ebuild .

Also I am missing a post-processing tool in portage. I qustioned about it
in  http://forums.gentoo.org/viewtopic.php?t=101835 and there is nothing
like that in portage. I especialy mean changes like
	ed /usr/share/texmf/web2c/texmf.cnf <<-EOF
	/^parse_first_line *=/
	s/=.*/= t/
	w
	q
	EOF
after update. This tells tex to read first line with format (%&latex) and
pass the rest of file to that format.

Or more importantly. The script texlinks (try to run it with -v) creates
some files and links in /usr/bin . It would be nice to automaticaly delete
them after unmerge.
Comment 12 Jaromir Malenko 2003-11-04 00:37:33 UTC
Created attachment 20237 [details]
New ebuilds: csindex and vlna

I created new ebuilds that are often used with Czech/Slovak TeX.
The csindex is used to create indexes according to Czech/Slovak alphabet.
The vlna adds ~ after some prepositions in TeX files.
Comment 13 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-11-04 02:28:50 UTC
Sure. I'll add your name at the top of the eclass. (and also to ChangeLogof
cstetex) As for post-processing Portage, you may can pkg_postinst. You can
run any script after merging files to live filesystem. man 5 ebuild tells
you available functions that you may find useful. Thanks for the comment
about texlinks issue. I'll find a way to remove the symlinks.
Comment 14 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-11-12 12:00:41 UTC
Sorry for replying late. It is time-consuming to build and test tetex,
ptex and cstetex several times on my relatively poor machine ;-( 

I committed cstetes-2.0.2.ebuild and tetex.eclass. A quick fix for
symlinks and scripts that are left behind /usr/bin is included.
Jaromir, do you mind if I add your name and email address as a
sub-maintainer to metadata.xml in cstetex? I'm very glad if you help
us with maintaining the ebuild.

I'll look into csindex and vlna later. (Personally, I prefer to have
those ebuilds as separate bug from cstetex and make them depend on
this bug, but anyhow I will deal with them here this time)
Comment 15 Jaromir Malenko 2003-11-12 12:27:36 UTC
I know this situation - I have absolutely poor machine :-)

I can see tetex.ebuild, but there is no cstetex in the portage tree yet. I have no problem with this. And until I stay with Gentoo I can help you.

I submited vlna and csindex only for people interested in it as soon as possible. I must work on them still.
Comment 16 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-02-01 08:05:54 UTC
Sorry for keeping csindex and vlna for long. I had a chance to
look into your ebuilds today. The main concern about these ebuilds
is LICENSE. No relevant license is found in /usr/portage/licenses
for csindex so I'll add one if you'd like, but I cannot find any
document about the license of vlna. Do you know any?

Besides, I'll give you some comments on your ebuilds.

* There's no need for "inherit eutils" in these ebuilds.
  It provides useful functions though, this is not appropriate here.
* SRC_URI should be ${P}.tar.gz instead of ${VLNA} and ${CSINDEX}.
  ${P}.tar.gz will be expanded as vlna-1.2.tar.gz and
  csindex-19980713.tar.gz respectively, so you don't need to set
  hardcode the version number to those variables. If you use
  ${P}.tar.gz it makes easy to upgrade (usually just renaming
  its filename works)
* No need for src_unpack(). The source archive is automatically
  downloaded and unpacked.
* No need for "cd ${WORKDIR}/${P}" in both src_compile() and
  src_install(). Current directory is initialised to ${S}
  (default value of ${S} is ${WORKDIR}/${P}) in each function.
  man 5 ebuild to get list of PWD of all functions.
* You may want to use "dobin csindex" in src_install().
  It is a shorthand of what you did in src_install().
  Also, it is good to include README.  It would look like:

src_install() {
	dobin csindex
	dodoc README
}

If you aren't sure about DEPEND, set virtual/glibc to DEPEND
in this case. Almost all binaries depend on virtual/glibc ;-)
(But don't set RDEPEND="${DEPEND}" by yourself - see Gentoo
Linux Development Policy for detail)
Comment 17 Jaromir Malenko 2004-02-02 04:32:37 UTC
The license for VLNA from README file:
Program is for public use. Author wants to be informed about useful changes in the CWEB source code. A changed program may not be published under the same name. Neither program nor its modifications may be sold.
No warranty is guaranteed.

The license for CSINDEX is in the COPYING file and is in English.

I have revised the ebuilds and I found a serious mistake in the vlna.ebuild. The description should say
DESCRIPTION="add nonbreakable spaces after some prepositions in Czech texts"
. I suppose you took care of the other "technical" corrections.

Thank you for useful comments.
Comment 18 Thomas R. (TRauMa) 2004-02-22 20:12:30 UTC
my 0.02
Comment 19 Thomas R. (TRauMa) 2004-02-22 20:12:30 UTC
my 0.02:

"A changed program may not be published under the same name."
Sounds like free artists license.

"Neither program nor its modifications may be sold."
Ouch. Can't put this on LiveCD or GRP. This licence is technically "nonfree"?
Comment 20 Jaromir Malenko 2004-02-23 04:25:24 UTC
I have talked to the author of vlna. He deleted the sentence 
"Neither program nor its modifications may be sold." from the license. I think we can use Artists license, now.
Comment 21 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-02-26 12:13:52 UTC
Thanks Jaromir. I assigned you as a maintainer of vlna and csindex
and committed them (app-text/vlna and dev-tex/csindex). I changed
the version of csindex as I noticed it said version 2.11c when I
ran it. Please test them. If you happen to have another ebuild for
improving Chech/Slovak support in Gentoo ditribution, please open a
new bug and submit it ;)