Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16899 - latex-eurosym ebuild badly written
Summary: latex-eurosym ebuild badly written
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-05 09:48 UTC by Marc 'huz' REYNES
Modified: 2003-09-19 20:43 UTC (History)
0 users

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


Attachments
handle eurosym.map and *.mf correctly (eurosym.patch,2.43 KB, patch)
2003-07-31 03:50 UTC, Martin von Gagern
Details | Diff
handle eurosym.map and *.mf correctly (eurosym.patch,2.43 KB, patch)
2003-07-31 03:57 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc 'huz' REYNES 2003-03-05 09:48:00 UTC
99% root@reynes latex-eurosym $ emerge latex-eurosym-1.2.ebuild 
Calculating dependencies ...done!
>>> emerge (1 of 1) app-text/latex-eurosym-1.2 to /
>>> Downloading
ftp://ftp.ibiblio.org/pub/linux/distributions/gentoo/distfiles/eurosym.tar.gz
--14:07:29-- 
ftp://ftp.ibiblio.org/pub/linux/distributions/gentoo/distfiles/eurosym.tar.gz
           => `/usr/portage/distfiles/eurosym.tar.gz'
R
Comment 1 Marc 'huz' REYNES 2003-03-05 09:48:00 UTC
99% root@reynes latex-eurosym $ emerge latex-eurosym-1.2.ebuild 
Calculating dependencies ...done!
>>> emerge (1 of 1) app-text/latex-eurosym-1.2 to /
>>> Downloading
ftp://ftp.ibiblio.org/pub/linux/distributions/gentoo/distfiles/eurosym.tar.gz
--14:07:29-- 
ftp://ftp.ibiblio.org/pub/linux/distributions/gentoo/distfiles/eurosym.tar.gz
           => `/usr/portage/distfiles/eurosym.tar.gz'
Résolution de proxy3.tcd.ie... complété.
Connexion vers proxy3.tcd.ie[134.226.1.115]:8001...connecté.
requête Proxy transmise, en attente de la réponse...200 OK
Longueur: 151,186 [application/x-tar]

100%[===========================================================================================================================================>]
151,186      134.34K/s    ETA 00:00

14:07:32 (134.34 KB/s) - « /usr/portage/distfiles/eurosym.tar.gz » sauvegardé
[151186/151186]

>>> md5 ;-) eurosym.tar.gz
>>> Unpacking source...
>>> Unpacking eurosym.tar.gz to /var/tmp/portage/latex-eurosym-1.2/work
>>> Source unpacked.

>>> Install latex-eurosym-1.2 into /var/tmp/portage/latex-eurosym-1.2/image/
category app-text
install: Ne peut évaluer `contrib/type1/dvips/eurosym.map' par stat(): Aucun
fichier ou répertoire de ce type

[.. snip ..] 

This announces an error in the ebuild.
The incredible patch is here : 
29c29
<       doins contrib/type1/dvips/eurosym.map
---
>       doins contrib/type1/dvips/config/eurosym.map




Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 2 Matthew Turk (RETIRED) gentoo-dev 2003-03-14 17:54:21 UTC
There have been some changes in directory structure with tetex-2.0.  Could you check 
to make sure this isn't specific to tetex-2.x or to tetex-1.07?  Which version are you 
using? 
Comment 3 Marc 'huz' REYNES 2003-03-15 10:31:27 UTC
Sorry Matthew,

I paste the error in french ! I didn't paid attention ... Here is the error in english,
It doesn't come from tetex but from the tree structure of latex-eursym, Nevertheless i use the tetex version num 1.0.7-r12.

If you have a look to the tarball, you'll see that eurosym.map is in contrib/type1/dvips/config/ directory and not contrib/type1/dvips/ as precised in the ebuild

>>> Install latex-eurosym-1.2 into /var/tmp/portage/latex-eurosym-1.2/image/ category app-text
install: cannot stat `contrib/type1/dvips/eurosym.map': No such file or directory
man:
Comment 4 Torsten Flammiger 2003-06-23 11:05:40 UTC
the ebuild does not copy the eurosym.map file into /usr/share/texmf/dvips/config/ directory one has to to this manually from the distfile
Comment 5 Martin von Gagern 2003-07-31 03:42:35 UTC
The ebuild neither copies the eurosym.map nor the *.mf font sources. I also believe that simply eurosym would be preferable to latex-eurosym as directory for the type1 pfbs.

I believe that correct handling of *.mf and *.pfb should go into latex-package.eclass. Therefore I propose the following patch:

--- /usr/portage/dev-tex/eurosym/eurosym-1.2.ebuild
+++ /usr/local/portage/dev-tex/eurosym/eurosym-1.2.ebuild
@@ -14,20 +14,17 @@
 SUPPLIER="public"
 
 src_install() {
-    cd ${S}
-       cd src
-    latex-package_src_doinstall all
-    cd ${S}
-       cd tfm
-    latex-package_src_doinstall all
+       cd ${S}/src
+    latex-package_src_doinstall fonts
+       cd ${S}/tfm
+    latex-package_src_doinstall fonts
+       cd ${S}/sty
+    latex-package_src_doinstall sty
+       cd ${S}/contrib/type1/fonts/type1/eurosym
+    latex-package_src_doinstall fonts
        cd ${S}
-       cd sty
-    latex-package_src_doinstall all
-       cd ${S}
-       insinto ${TEXMF}/fonts/type1/${SUPPLIER}/latex-eurosym
-       doins contrib/type1/fonts/type1/eurosym/*
        insinto ${TEXMF}/dvips/config/
-       doins contrib/type1/dvips/eurosym.map
+       doins contrib/type1/dvips/config/eurosym.map
        cd ${S}
        dodoc README Changes 
        cd doc
--- /usr/portage/eclass/latex-package.eclass
+++ /usr/local/portage/eclass/latex-package.eclass
@@ -93,13 +93,27 @@
                     texi2dvi -q -c --language=latex $i &> /dev/null
                     done
                 ;;
-            "tfm" | "vf" | "afm" | "pfb")
+            "tfm" | "vf" | "afm")
                 for i in `find . -maxdepth 1 -type f -name "*.${1}"`
                 do
                     insinto ${TEXMF}/fonts/${1}/${SUPPLIER}/${PN}
                     doins $i
                 done
                 ;;
+            "pfb")
+                for i in `find . -maxdepth 1 -type f -name "*.pfb"`
+                do
+                    insinto ${TEXMF}/fonts/type1/${SUPPLIER}/${PN}
+                    doins $i
+                done
+                ;;
+            "mf")
+                for i in `find . -maxdepth 1 -type f -name "*.mf"`
+                do
+                    insinto ${TEXMF}/fonts/source/${SUPPLIER}/${PN}
+                    doins $i
+                done
+                ;;
             "ttf")
                 for i in `find . -maxdepth 1 -type f -name "*.ttf"`
                 do
@@ -114,7 +128,7 @@
                 latex-package_src_doinstall tex dtx dvi ps pdf
                 ;;
             "fonts")
-                latex-package_src_doinstall tfm vg afm pfb ttf
+                latex-package_src_doinstall tfm vg afm pfb mf ttf
                 ;;
             "bin")
                 latex-package_src_doinstall sh
Comment 6 Martin von Gagern 2003-07-31 03:50:29 UTC
Created attachment 15272 [details, diff]
handle eurosym.map and *.mf correctly

Sorry for adding the patch plain to my last comment -- did not look close
enough.
This patch
1. changes latex-package.eclass to correctly handle *.mf and *.pfb
2. change eurosym-1.2.ebuild to rely on this
3. fix wrong path specification for eurosym.map in source dir
Comment 7 Martin von Gagern 2003-07-31 03:57:00 UTC
Created attachment 15274 [details, diff]
handle eurosym.map and *.mf correctly

Sorry for adding the patch plain to my last comment -- did not look close
enough.
This patch
1. changes latex-package.eclass to correctly handle *.mf and *.pfb
2. change eurosym-1.2.ebuild to rely on this
3. fix wrong path specification for eurosym.map in source dir
Comment 8 Mike Gardiner (RETIRED) gentoo-dev 2003-09-19 20:43:36 UTC
the .map and .mf issues have been fixed in portage now. as for the eclass patch, that'll need some seperate looking at.