public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [RFC] splitting documentation
@ 2016-05-19 21:35 Marco Atzeri
       [not found] ` <c655829d-d520-486f-66f7-a546ea819751@dronecode.org.uk>
  2016-05-20 18:21 ` Achim Gratz
  0 siblings, 2 replies; 6+ messages in thread
From: Marco Atzeri @ 2016-05-19 21:35 UTC (permalink / raw)
  To: cygwin-apps

[-- Attachment #1: Type: text/plain, Size: 841 bytes --]

To move the documentation in a noarch package
I split lilypond in two source packages.

http://matzeri.altervista.org/noarch/lilypond-doc/
http://matzeri.altervista.org/x86/lilypond/
http://matzeri.altervista.org/x86_64/lilypond/

The documentation is just a copy of the upstream PDF so :
- the source package is a dummy to avoid data duplication
- the install phase phase grab the files from upstream an put in
the proper directory.

Question:
- How to properly replace the old layout with the
  new in upload ?

I expect that "calm" could complain about:

x86/release/lilypond/lilypond-doc/lilypond-doc-2.19.37-1.tar.xz
noarch/release/lilypond-doc/lilypond-doc-2.19.42-1.tar.xz

Should I move both as :

noarch/release/lilypond-doc/lilypond-doc-2.19.37-1.tar.xz
noarch/release/lilypond-doc/lilypond-doc-2.19.42-1.tar.xz

Regards
Marco





[-- Attachment #2: lilypond-doc.cygport --]
[-- Type: text/plain, Size: 1309 bytes --]

# lilypond.cygport
NAME="lilypond-doc"
VERSION=2.19.42
RELEASE=1
ARCH="noarch"
SUMMARY="A typesetting system for music notation (Documentation)"
DESCRIPTION="LilyPond is an automated music engraving system. It formats music beautifully and automatically, and has a friendly syntax for its input files."
CATEGORY="Interpreters"

MAJOR_VERSION="$(echo ${VERSION} | cut -d '.' -f 1)"
MINOR_VERSION="$(echo ${VERSION} | cut -d '.' -f 2)"

# PATCH_URI=""

HOMEPAGE="http://www.lilypond.org/"
SRC_URI="empty.tar.xz"
SRC_DIR="empty"

PKG_NAMES="lilypond-doc"
RESTRICT="diff"

# The main 'lilypond' package contains everything except the PDF 
# documentation.

# The 'lilypond-doc' package.
lilypond_doc_CONTENTS="usr/share/doc/lilypond/pdf"
lilypond_doc_SUMMARY="Documentation for LilyPond."
lilypond_doc_DESCRIPTION="${DESCRIPTION} This package contains the documentation for LilyPond."
lilypond_doc_CATEGORY="Doc"

src_compile() {
	:
}


src_install() {
        dodir  /usr/share/doc/lilypond/pdf
	cd ${D}/usr/share/doc/lilypond/pdf
	wget http://lilypond.org/doc/v2.19/Documentation/learning.pdf
	wget http://lilypond.org/doc/v2.19/Documentation/music-glossary.pdf
	wget http://lilypond.org/doc/v2.19/Documentation/essay.pdf
	wget http://lilypond.org/doc/v2.19/Documentation/usage.pdf
}

src_test() {
        :
}


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-05-23 14:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-19 21:35 [RFC] splitting documentation Marco Atzeri
     [not found] ` <c655829d-d520-486f-66f7-a546ea819751@dronecode.org.uk>
2016-05-20 15:10   ` Marco Atzeri
2016-05-23 14:00     ` Jon Turney
2016-05-23 14:16       ` Marco Atzeri
2016-05-20 18:21 ` Achim Gratz
2016-05-20 19:47   ` Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).