Opened 14 years ago

Closed 14 years ago

#28663 closed defect (fixed)

Autotrace @0.31.1_2 looks for pstoedit-config instead of using pkg-config

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: autotrace

Description

Configuring autotrace I get, although pstoedit 3.50 is installed:

configure:9246: checking for pstoedit-config
configure:9277: result: no
configure:9285: checking for PSTOEDIT - version >= 3.32.1
configure:9397: result: no
configure:9518: checking for pstoedit-config
configure:9549: result: no
configure:9557: checking for PSTOEDIT - version >= 3.32.0
configure:9669: result: no
configure:9855: WARNING:
*** Cannot find libpstoedit. ***
*** Output functions using libpstoedit are disabled ***

The reason for this failure is that autotrace is not developed actively since almost ten years (release date of version 0.31.1). In the meantime, 2006 or 2008, pstoedit developed a PC file for pkg-config and the old pstoedit-config utility is not distributed any more. So a wrapper under this name is needed to translated into pkg-config. I am using this script:

#!/bin/sh
#
until [ $# = 0 ]; do
    case $1 in
        --version)
    	args="$args --modversion"
    	;;
        *)
    	args="$args $1"
    esac
    shift    
done
pkg-config $args pstoedit

which I got from somewhere (I don't see my "handwriting" in it, so it has to come from the internet). The pstoedit site offers a slightly different bash script for download (http://sourceforge.net/tracker/index.php?func=detail&aid=2940115&group_id=11789&atid=311789):

#!/bin/bash

case "$1" in

  --version)
    /usr/bin/pkg-config --modversion pstoedit
    ;;

  *)
    /usr/bin/pkg-config $@ pstoedit
    ;;

esac

#EOF

I think one such version of pstoedit-config needs to be added to autotrace – presumingly it's the only package that still uses pstoedit-config.

Change History (3)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Port: @0.31.1_2 @3.50_0 removed
Summary: Autotrace looks for pstoedit-config instead of using pkg-configAutotrace @0.31.1_2 looks for pstoedit-config instead of using pkg-config

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Port: pstoedit removed
Status: newassigned

Let's also not forget that autotrace does not currently declare a dependency on pstoedit.

comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Added pstoedit support to autotrace port in r76730. Also deleted the magick variant and now link unconditionally with ImageMagick, because pstoedit already does.

Note: See TracTickets for help on using tickets.