Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18248 - New ebuild for html2text
Summary: New ebuild for html2text
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-03-26 15:55 UTC by Thomas Schuetz
Modified: 2003-09-12 02:25 UTC (History)
1 user (show)

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


Attachments
The corrected ebuild (html2text-1.3.1.ebuild,687 bytes, text/plain)
2003-03-30 08:38 UTC, Thomas Schuetz
Details
Another corrected ebuild (html2text-1.3.1.ebuild,680 bytes, text/plain)
2003-05-07 12:52 UTC, Thomas Schuetz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schuetz 2003-03-26 15:55:14 UTC
I got a new ebuild for you/us, I atached the text below. The header need some 
corrections, please take a look on it. I think the right place for it would be 
app-text/html2text. 
 
I have a Problem with it, I can only emerge it if I put this ebuild in  
/usr/portage/app-text/html2text. If I try it with a folder in ~ I get this: 
 
~ # emerge -p /home/thommy/portage/html2text-1.3.1.ebuild 
 
These are the packages that I would merge, in order: 
 
Calculating dependencies \emerge: create(): aux_get() error on thommy/html2text-1.3.1; 
aborting... 
 
I asked some people in IRC about this but they couldn't help me. 
 
Bye for now, 
 
Thommy 
 
 
Okay, now the ebuild: 
----------------------------------------------------------------------------- 
# Copyright 1999-2003 Gentoo Technologies, Inc. 
# Distributed under the terms of the GNU General Public License v2 
# $Header: /home/cvsroot/gentoo-x86/app-text/htmp2text/html2text-1.3.1.ebuild vapier Exp $ 
 
S=${WORKDIR}/${P/b/} 
DESCRIPTION="A HTML to text converter" 
SRC_URI="http://userpage.fu-berlin.de/~mbayer/tools/html2text-1.3.1.tar.gz" 
HOMEPAGE="http://userpage.fu-berlin.de/~mbayer/tools/html2text.html" 
 
SLOT="0" 
LICENSE="GPL" 
KEYWORDS="x86 sparc" 
IUSE="" 
 
DEPEND="" 
RDEPEND="${DEPEND}" 
 
src_compile() { 
	./configure || die 
	emake || die 
} 
 
src_install() { 
        dobin html2text 
	doman html2text.1.gz 
        doman html2textrc.5.gz 
 
	dodoc CHANGES COPYING CREDITS INSTALL KNOWN_BUGS README TODO 
} 
 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-03-26 16:07:20 UTC
look in /etc/make.conf for the PORTDIR_OVERLAY

usually, you mimic the portage tree in /usr/local/portage

so you'd have /usr/local/portage/app-text/html2text directory for this.
Comment 2 Thomas Schuetz 2003-03-30 08:38:53 UTC
Created attachment 10017 [details]
The corrected ebuild

I deleted a senseless line and atached the ebuild as desvribed in the HowTo.
Sorry I put it in to the text the last time, it's my first ebuild.
Comment 3 Patrick Kursawe (RETIRED) gentoo-dev 2003-05-07 02:29:37 UTC
You should not hard-code the version number in the ebuild if possible.
The license seems to be GPL-2.
Did you actually check that this works fine for x86 and sparc? New packages should be set to ~your_arch at first unless you really really know it works.
The RDEPEND is automagically set to DEPEND when not specified.
DEPEND should not be empty, if there's nothing else to depend on just insert virtual/glibc there (not sure if this is official policy, but seen it quite often - satai, do you know better?).
I don't think installing the license file is necessary when it is an exact copy of the one specified in the LICENSE variable.

Have fun! :-)
Comment 4 Thomas Schuetz 2003-05-07 12:52:09 UTC
Created attachment 11642 [details]
Another corrected ebuild

Changed the things, phosphan told me
Comment 5 Patrick Kursawe (RETIRED) gentoo-dev 2003-09-12 01:57:31 UTC
Have finally added it to portage.
Setting herd to text-markup.
Comment 6 Mike Gardiner (RETIRED) gentoo-dev 2003-09-12 02:25:41 UTC
thanks phosphan, text-markup is great.