Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519302 - dev-libs/concorde-03.12.19 - a computer code for the symmetric traveling salesman problem (TSP) and some related network optimization problems
Summary: dev-libs/concorde-03.12.19 - a computer code for the symmetric traveling sale...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.math.uwaterloo.ca/tsp/conc...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2014-08-07 10:53 UTC by Petr Vaněk
Modified: 2019-11-10 13:16 UTC (History)
3 users (show)

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


Attachments
concorde-03.12.19.ebuild (concorde-03.12.19.ebuild,857 bytes, text/plain)
2014-08-07 10:53 UTC, Petr Vaněk
Details
concorde-03.12.19.ebuild (concorde-03.12.19.ebuild,773 bytes, text/plain)
2014-08-07 18:35 UTC, Petr Vaněk
Details

Note You need to log in before you can comment on or make changes to this bug.
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.