Opened 19 years ago

Closed 19 years ago

Last modified 8 years ago

#5167 closed defect (fixed)

NEW: catdoc 0.94_0

Reported by: julian@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

catdoc 0.94_0

the portfile is available at http://einwag.de/catdoc-port.tar.gz

Description: tools for converting MS Office files to plain text or TeX

Homepage: http://www.45.free.net/~vitus/ice/catdoc/

Change History (4)

comment:1 Changed 19 years ago by mww@…

proposals:

  • does cattdoc really require gettext and ibiconv? So we can most probably remove
    configure.env   LDFLAGS=-L${prefix}/lib CPPFLAGS=-I${prefix}/include
    
    as none of the binaries will link against neither of the two
  • wish popping up is distractin, disable this test
    configure.args  --without-wish
    
    --prefix=${prefix} is set automatically via configure.pre_args, --mandir has no effect here
  • instead of dependening on the gnumake port (which is never called here since it supplies "gmake") use:
    build.type  gnu
    
  • to get the mandir right, we can cheat it in at destroot phase still:
    destroot.destdir prefix=${destroot}${prefix} \
            mandir=${destroot}${prefix}/share/man/man1
    
Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 19 years ago by julian@…

(In reply to comment #1)

proposals:

  • does cattdoc really require gettext and ibiconv? So we can most probably remove
    configure.env   LDFLAGS=-L${prefix}/lib CPPFLAGS=-I${prefix}/include
    

as none of the binaries will link against neither of the two

Indeed, works fine without additional flags.

Corrected all of the mentioned issues, here's the patch:

--- Portfile	2005-09-28 14:19:28.000000000 +0200
+++ Portfile.new	2005-09-28 21:18:48.000000000 +0200
@@ -22,8 +22,8 @@
 master_sites	ftp://ftp.45.free.net/pub/catdoc/
 checksums	md5 f884dabe366d66c6cda35dacb0cdceab
 patchfiles	patch-Makefile.in.diff
-depends_lib	port:gettext port:gmake port:libiconv
-destroot.destdir prefix=${destroot}${prefix}
-configure.args  --mandir=${prefix}/share/man \
-		--prefix=${prefix}
-configure.env   LDFLAGS=-L${prefix}/lib CPPFLAGS=-I${prefix}/include
+depends_lib	port:gettext port:libiconv
+build.type	gnu
+configure.args	--without-wish
+destroot.destdir prefix=${destroot}${prefix} \
+		 mandir=${destroot}${prefix}/share/man/man1
Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 19 years ago by julian@…

Forgot to remove dependencies, here's the corrected patch:

--- Portfile 2005-09-28 14:19:28.000000000 +0200 +++ Portfile.new 2005-09-28 21:29:01.000000000 +0200 @@ -22,8 +22,7 @@

master_sites ftp://ftp.45.free.net/pub/catdoc/ checksums md5 f884dabe366d66c6cda35dacb0cdceab patchfiles patch-Makefile.in.diff

-depends_lib port:gettext port:gmake port:libiconv -destroot.destdir prefix=${destroot}${prefix} -configure.args --mandir=${prefix}/share/man \

  • --prefix=${prefix}

-configure.env LDFLAGS=-L${prefix}/lib CPPFLAGS=-I${prefix}/include +build.type gnu +configure.args --without-wish +destroot.destdir prefix=${destroot}${prefix} \ + mandir=${destroot}${prefix}/share/man/man1

Version 0, edited 19 years ago by julian@… (next)

comment:4 Changed 19 years ago by mww@…

Resolution: fixed
Status: newclosed

commited with a

depends_run bin:wish:tk

thanks!

Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)
Note: See TracTickets for help on using tickets.