Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 519302

Summary: dev-libs/concorde-03.12.19 - a computer code for the symmetric traveling salesman problem (TSP) and some related network optimization problems
Product: Gentoo Linux Reporter: Petr Vaněk <arkamar>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED OBSOLETE    
Severity: enhancement CC: arkamar, bicatali, ryao
Priority: Normal Keywords: EBUILD
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://www.math.uwaterloo.ca/tsp/concorde.html
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: concorde-03.12.19.ebuild
concorde-03.12.19.ebuild

Description Petr Vaněk gentoo-dev 2014-08-07 10:53:07 UTC
Created attachment 382442 [details]
concorde-03.12.19.ebuild

Ebuild for Concorde Traveling Salesman Problem (TSP) solver.

http://www.math.uwaterloo.ca/tsp/concorde.html
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-07 11:05:00 UTC
Comment on attachment 382442 [details]
concorde-03.12.19.ebuild

>src_unpack() {
>	unpack "${A}"
>	cd ${WORKDIR}
>	mv concorde "${P}"
>}

Alternatively, set S="${WORKDIR}"/... properly, or do the mv in src_prepare() instead.

>src_install() {
>	dolib.a concorde.a

USE=static-libs? Can it be persuaded to build a shared library instead?

>	doheader concorde.h
>	dobin EDGEGEN/edgegen
>	dobin CUT/mincut
>	dobin FMATCH/fmatch
>	dobin LINKERN/linkern
>	dobin LOCALCUT/localcut

dobin can take multiple arguments, so a single call should suffice.

>	use randtsp && {

if use ...; then

>		sed -i 's/nawk/awk/' TINY/randtsp.awk
>		dobin TINY/randtsp.awk
>	}
>	dobin TOOLS/{edg2len,edgunion,fconvert,prob2tsp,showres,tourchk,tourlen}
>	dobin TSP/concorde

Same.
Comment 2 Petr Vaněk gentoo-dev 2014-08-07 18:35:52 UTC
Created attachment 382488 [details]
concorde-03.12.19.ebuild
Comment 3 Petr Vaněk gentoo-dev 2014-08-07 18:51:24 UTC
Hi,

thanks for comments. I changed the ebuild according to suggestions.

All Makefiles generate static libraries and then the concorde.a but without any options to make shared one. I don't see any easy (sed like) solution of this.

Petr
Comment 4 Petr Vaněk gentoo-dev 2019-11-10 13:16:54 UTC
It seems that no one needs that and I don't use it anymore.