#20692: Add sage-apply-patches helper script for use in spkg-install scripts
-------------------------------------+-------------------------------------
Reporter: embray | Owner:
Type: enhancement | Status: needs_work
Priority: minor | Milestone: sage-7.3
Component: build | Resolution:
Keywords: | Merged in:
Authors: Erik Bray | Reviewers: Jeroen Demeyer
Report Upstream: N/A | Work issues:
Branch: u/embray/patch- | Commit:
cleanup | 29bd19903b16289c178e9468194318e5d1017dad
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by embray):
`sage-spkg` contains the following:
{{{
# Strip file extension from the archive file and hope (as per
# automake standards) that this is the same as the directory name
# inside; move the directory to "src". (This goes wrong for
# upstream package archives that have been renamed to appease some
# other Sage script, such as "latte-int", whose archive is renamed
# to "latte_int".)
mv "$(echo "$PKG_NAME_UPSTREAM" | sed
's/\.zip$//g;s/\.tgz$//g;s/\.tar\.
gz$//g;s/\.tar\.xz$//g;s/\.tar\.lz$//g;s/\.tar\.bz2$//g;s/\.tar$//g')"*
src
}}}
Maybe this should be redone. There are a number of ways it might be done
differently. One possibility is that it could be made `sage-uncompress-
spkg`'s job to always extract to `src`. It could handle checking for the
top-level directory in the archive and extracting it instead as `src`.
For those handful of packages (are there any? I suspect probably...) that
don't have a top-level directory it would create `src` and extract all the
archive contents into it.
--
Ticket URL: <http://trac.sagemath.org/ticket/20692#comment:21>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.