Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41572 - contributed ebuild for latex2rtf (a latex to rtf translator)
Summary: contributed ebuild for latex2rtf (a latex to rtf translator)
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: http://latex2rtf.sourceforge.net/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-02-14 10:58 UTC by Pablo De Nápoli
Modified: 2004-02-26 11:10 UTC (History)
0 users

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


Attachments
my ebuild for latex2rtf (latex2rtf-1.9.14.ebuild,859 bytes, text/plain)
2004-02-14 10:59 UTC, Pablo De Nápoli
Details
my Makefile for latex2rtf (Makefile,9.33 KB, text/x-makefile)
2004-02-14 11:00 UTC, Pablo De Nápoli
Details
modified ebuild (latex2rtf-1.9.14.ebuild,835 bytes, text/plain)
2004-02-24 12:01 UTC, Pablo De Nápoli
Details
a modified version of the Makefile (Makefile-1.9.14,8.44 KB, text/plain)
2004-02-24 12:04 UTC, Pablo De Nápoli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo De Nápoli 2004-02-14 10:58:02 UTC
LaTeX2rtf is a translator program which is intended to translate a LaTeX document (precisely: the text and a limited subset of LaTeX tags) into the RTF format which can be imported by several textprocessors (including Microsoft Word for Windows and Word for Macintosh). 

I'm contributing an ebuild for Latex2rtf version 1.9.14

This application would be app-text/latex2rtf

Also I'm submiting my version of the Makefile (needed for my ebuild)
Please put it it on /usr/portage/latex2rtf-1.9.14/files/Makefile

(I prefer this to patching the Makefile, since it will make it easier
the upgrades, and there are many modifications)

The documentation goes in /usr/share/doc/latex2rtf-1.9.14 
(only the text version and the man page are installed by default; html, info
and pdf versions are also installed if doc flag is USEd)


The configuration files for different languages goes in /usr/share/latex2rtf/

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Pablo De Nápoli 2004-02-14 10:59:20 UTC
Created attachment 25609 [details]
my ebuild for latex2rtf
Comment 2 Pablo De Nápoli 2004-02-14 11:00:19 UTC
Created attachment 25610 [details]
my Makefile for latex2rtf

put it in /usr/portage/latex2rtf-1.9.14/files/Makefile
Comment 3 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-02-23 09:34:57 UTC
Hi, thanks for submitting the ebuild. However, there are several
things I should mention before taking it to Portage tree.
1) app-text/tetex should be virtual/tetex, otherwise app-text/ptex
   and app-text/cstetex users won't take benefit of the package ;)
2) Write ${P}.tar.gz instead of ${PN}-${PV}.tar.gz. ${P} is expaned
   to ${PN}-${PV} but it looks cleaner and matches our convention.
   Also, if it is hosted by sourceforge, we could write it as
   SRC_URI="mirror://sourceforge/latex2rtf/...". It will grab 
   files from one of sourceforge mirrors, which is better than
   specifying only one mirror.
3) Although there are many ways to write `use' command in if - then
   clause, it would be better to use
   if use doc ; then
     ...
   fi
   or
   if [ `use doc` ]; then
     ...
   fi
   or
   if [ -n "`use doc`" ]
   then
     ...
   fi
   or something similar. It is because  if (use doc); then invokes
   subshell to check whether use flag is set, but we don't actually
   need to run subshell for that purpose.
Comment 4 Pablo De Nápoli 2004-02-24 12:01:18 UTC
Created attachment 26274 [details]
modified ebuild

Ok, I'm sending to you a modified ebuild acording to your remarks.
(excuse me, I don't know well the details of the Gentoo standards)
Please note that I've renamed my Makefile to Makefile-1.9.14
in order to make easier future updates
Comment 5 Pablo De Nápoli 2004-02-24 12:04:36 UTC
Created attachment 26275 [details]
a modified version of the Makefile

I've renamed it to Makefile-1.9.14 to make it easier updates
(by identifying the package version)
Also I've deleted some non necesary lines with anoying messages
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-02-26 11:10:00 UTC
I committed your ebuild(1.9.14) and the latest one (1.9.15) to Portage.
Despite your first comment about creating Makefile, I extracted a
diff from you Makefile-1.9.14 and applied it. This is because
it makes it easier to upgrade (Makefile for 1.9.14 doesn't work
for 1.9.15, but the patch for 1.9.15 works for 1.9.14 and vice versa).
Also, I modified your patch because man and info directories in Gentoo
are not /usr/man and /usr/info but /usr/share/man and /usr/share/info.

Thanks for contributing the ebuild and giving us informative
comments.