Here's an ebuild I made for Yerase's MS-TNEF stream reader. It decodes 'winmail.dat' file attachments. *** net-libs/libytnef/libytnef-1.4.ebuild *** # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 DESCRIPTION="Yerase's TNEF Stream Reader library" HOMEPAGE="http://ytnef.sourceforge.net" SRC_URI="http://switch.dl.sourceforge.net/sourceforge/ytnef/${P}.tar.gz" LICENSE="GPL-2" #SLOT="0" KEYWORDS="~x86" src_compile() { econf --enable-shared || die emake || die } src_install() { make DESTDIR=${D} install || die } *** net-mail/ytnef/ytnef-2.5.ebuild *** # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 DESCRIPTION="Yerase's TNEF Stream Reader" HOMEPAGE="http://ytnef.sourceforge.net" SRC_URI="http://switch.dl.sourceforge.net/sourceforge/ytnef/${P}.tar.gz" LICENSE="GPL-2" #SLOT="0" KEYWORDS="~x86" DEPEND="=net-libs/libytnef-1.4" src_compile() { econf --enable-shared || die emake || die } src_install() { make DESTDIR=${D} install || die } *Please*, let me know if something can be improved.. Thanks ! Jo
Here's an ebuild I made for Yerase's MS-TNEF stream reader. It decodes 'winmail.dat' file attachments. *** net-libs/libytnef/libytnef-1.4.ebuild *** # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 DESCRIPTION="Yerase's TNEF Stream Reader library" HOMEPAGE="http://ytnef.sourceforge.net" SRC_URI="http://switch.dl.sourceforge.net/sourceforge/ytnef/${P}.tar.gz" LICENSE="GPL-2" #SLOT="0" KEYWORDS="~x86" src_compile() { econf --enable-shared || die emake || die } src_install() { make DESTDIR=${D} install || die } *** net-mail/ytnef/ytnef-2.5.ebuild *** # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 DESCRIPTION="Yerase's TNEF Stream Reader" HOMEPAGE="http://ytnef.sourceforge.net" SRC_URI="http://switch.dl.sourceforge.net/sourceforge/ytnef/${P}.tar.gz" LICENSE="GPL-2" #SLOT="0" KEYWORDS="~x86" DEPEND="=net-libs/libytnef-1.4" src_compile() { econf --enable-shared || die emake || die } src_install() { make DESTDIR=${D} install || die } *Please*, let me know if something can be improved.. Thanks ! Joël
Created attachment 30146 [details] New libytnef ebuild version New libytnef ebuild version
Created attachment 30147 [details] New ytnef ebuild version (please take libytnef as well) New ytnef ebuild version (please take libytnef as well)
please change SRC_URI="http://switch.dl.sourceforge.net/sourceforge/ytnef/${P}.tar.gz" to SRC_URI="mirror://sourceforge/ytnef/${P}.tar.gz"
Created attachment 30526 [details] Martin, thanks for your advice ! Here's the updated libytnef.
Created attachment 30527 [details] ... and the updated ytnef as well.
seems it doesn't compile with gcc2 gcc -DHAVE_CONFIG_H -I. -I. -I. -march=i686 -O3 -pipe -ffast-math -fomit-frame-pointer -c ytnef.c -Wp,-MD,.deps/ytnef.TPlo -fPIC -DPIC -o .libs/ytnef.lo ytnef.c: In function `IsCompressedRTF': ytnef.c:1301: parse error before `unsigned' ytnef.c:1303: parse error before `unsigned' ytnef.c:1305: parse error before `unsigned' ytnef.c:1307: parse error before `unsigned' ytnef.c:1310: `magic' undeclared (first use in this function) ytnef.c:1310: (Each undeclared identifier is reported only once ytnef.c:1310: for each function it appears in.) ytnef.c: In function `DecompressRTF': ytnef.c:1334: parse error before `unsigned' ytnef.c:1336: parse error before `unsigned' ytnef.c:1338: parse error before `unsigned' ytnef.c:1340: parse error before `unsigned' ytnef.c:1344: `compressedSize' undeclared (first use in this function) ytnef.c:1350: `magic' undeclared (first use in this function) ytnef.c:1352: `uncompressedSize' undeclared (first use in this function) ytnef.c:1359: parse error before `int' ytnef.c:1363: `flags' undeclared (first use in this function) ytnef.c:1363: `flagCount' undeclared (first use in this function) ytnef.c:1379: parse error before `int' ytnef.c:1380: `end' undeclared (first use in this function) make[1]: *** [ytnef.lo] Error 1 make[1]: Leaving directory `/var/tmp/portage/libytnef-1.4/work/libytnef-1.4' make: *** [all] Error 2
Upstream dead for years now and seems no-one interested yet -> wontfix reopen and join us in #gentoo-sunrise if you feel otherwise