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 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.
Created attachment 382488 [details] concorde-03.12.19.ebuild
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
It seems that no one needs that and I don't use it anymore.