Summary: | latex-eurosym ebuild badly written | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Marc 'huz' REYNES <marc.reynes> |
Component: | Current packages | Assignee: | Text-Markup Team (OBSOLETE) <text-markup+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 1.2 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
handle eurosym.map and *.mf correctly
handle eurosym.map and *.mf correctly |
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é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. 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? 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:
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 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 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
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
the .map and .mf issues have been fixed in portage now. as for the eclass patch, that'll need some seperate looking at. |