public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowitz@cygwin.com>
To: cygwin-apps@cygwin.com
Subject: Re: [ACTION REQUIRED] ARCH=noarch uploads with cygport 0.22.0
Date: Wed, 11 May 2016 20:08:00 -0000	[thread overview]
Message-ID: <928aad7a-a157-231c-1c42-6fc4db5b6a67@cygwin.com> (raw)
In-Reply-To: <99701470-3d7f-20c7-7b3a-02139bb936ab@gmail.com>

On 2016-05-11 12:56, Marco Atzeri wrote:
> On 11/05/2016 08:17, Yaakov Selkowitz wrote:
>> On 2016-05-11 00:07, Marco Atzeri wrote:
>>> So at this stage not the documentation subpackages, but only if all
>>> subpackages are in this category. correct ?
>>
>> At this time we are only considering those where all subpackages are
>> noarch, i.e. ARCH=noarch is (or will be) defined.
>>
>>> Not so sure if this case fit in your request;
>>> all the language files for tesseract
>> [snip]
>>> that are in the same tree of tesseract-ocr but
>>> they have independent minimalist setup.hint hand made.
>>
>> I don't understand, they don't have any external-source: nor a -src
>> package, so how are they built?
>
>
> just downloaded the specific language data from
>
> https://github.com/tesseract-ocr/tessdata
> https://github.com/tesseract-ocr/langdata

That sounds like two separate source packages then, although you're 
welcome to combine them.  FWIW Fedora's package builds these together 
with the program itself:

http://pkgs.fedoraproject.org/cgit/rpms/tesseract.git/tree/tesseract.spec

> copied in a <temp>/usr/share/tessdata and packaged.
>
> Making a source file was a waste of space as it will be a duplication
> of the binary.

That's not a factor.  All packages must have a source package, so that 
how the binary package(s) are built can be seen and reproduced.

> In theory I could do a noarch tesseract-ocr-language.cygport
> that skips build and for install just copies the data from
> the git and than packages the whole.
> I doubt that cygport accept an empty SRC_URI, but I have not yet tested it

There *is* a SRC_URI: the upstream repo!  If you want to do this 
separately, then something along the lines of:

NAME="tesseract-ocr-langdata"
VERSION=3.04.00
RELEASE=1
CATEGORY="Text"
SUMMARY="training files for tesseract-ocr"
DESCRIPTION="Source training data for Tesseract for lots of languages"
HOMEPAGE=
SRC_URI="https://github.com/tesseract-ocr/langdata/archive/${VERSION}/langdata-${VERSION}.tar.gz"
SRC_DIR="langdata-${VERSION}"

ARCH=noarch

PKG_NAMES="tesseract-training-core"
tesseract_training_core_CONTENTS="usr/share/tessdata/training/*.*"
for l in deu:German eng:English fra:French .....
do
   PKG_NAMES+=" tesseract-training-${l%:*}"
   declare tesseract_training_${l%:*}_SUMMARY="${l#*:} ${SUMMARY}"
   declare tesseract_training_${l%:*}_REQUIRES="tesseract-training-core"
   declare 
tesseract_training_${l%:*}_CONTENTS="usr/share/tessdata/training/${l%:*}/"
done

src_compile() { :; }

src_install() {
         dodir /usr/share/tessdata/training
         cp -pr ${S}/* ${D}/usr/share/tessdata/training/
}

-- 
Yaakov

  reply	other threads:[~2016-05-11 20:08 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-10 22:11 Yaakov Selkowitz
2016-05-11  5:07 ` Marco Atzeri
2016-05-11  6:17   ` Yaakov Selkowitz
2016-05-11 16:26     ` David Stacey
2016-05-11 20:15       ` Yaakov Selkowitz
2016-05-17 22:07         ` David Stacey
2016-05-11 17:56     ` Marco Atzeri
2016-05-11 20:08       ` Yaakov Selkowitz [this message]
2016-05-11  6:12 ` Thomas Wolff
2016-05-11 15:31   ` Yaakov Selkowitz
2016-05-11  8:15 ` Andrew Schulman
2016-05-11 15:26   ` Yaakov Selkowitz
2016-05-11 16:36 ` Eric Blake
2016-05-11 17:59   ` Yaakov Selkowitz
2016-05-11 17:26 ` Ken Brown
2016-05-11 20:35   ` Yaakov Selkowitz
2016-05-11 21:54     ` Ken Brown
2016-05-11 22:17       ` Yaakov Selkowitz
2016-05-11 22:30         ` Ken Brown
2016-05-12  1:59           ` Yaakov Selkowitz
2016-05-12  2:00     ` Yaakov Selkowitz
2016-06-06 15:28       ` Ken Brown
2016-06-06 16:54         ` Yaakov Selkowitz
2016-05-11 18:38 ` Marco Atzeri
2016-05-11 20:48   ` Yaakov Selkowitz
2016-05-11 21:02     ` Marco Atzeri
2016-05-11 21:31       ` Yaakov Selkowitz
2016-06-06 16:58         ` Yaakov Selkowitz
2016-06-07 11:23           ` Marco Atzeri
2016-06-07 21:44             ` Yaakov Selkowitz
2016-06-07 23:41               ` Marco Atzeri
2016-06-09 18:37                 ` Marco Atzeri
2016-05-12  2:07   ` Yaakov Selkowitz
2016-05-12 10:45 ` Adam Dinwoodie
2016-05-12 15:10   ` Yaakov Selkowitz
2016-05-12 12:09 ` Achim Gratz
2016-05-12 15:10   ` Yaakov Selkowitz
2016-05-21 16:43   ` Achim Gratz
2016-05-26 19:45     ` Yaakov Selkowitz
2016-05-26 20:02       ` Achim Gratz
2016-05-13 11:12 ` JonY
2016-05-13 14:41   ` Yaakov Selkowitz
2016-05-18 15:15 ` Corinna Vinschen
2016-05-18 16:06   ` Yaakov Selkowitz
2016-06-06 22:24 ` Yaakov Selkowitz
2016-06-06 22:39   ` Ken Brown
2016-06-06 23:59     ` Ken Brown
2016-06-07 15:16       ` Yaakov Selkowitz
2016-06-06 23:25   ` Warren Young
2016-06-07  8:23   ` Jari Aalto
2016-06-07 10:02   ` Corinna Vinschen
2016-06-09  5:12     ` [ACTION REQUIRED] ARCH=noarch uploads with cygport 0.22.0 (+ python-feedparser) Jari Aalto
2016-06-11  7:15       ` [ACTION REQUIRED] ARCH=noarch uploads with cygport 0.22.0 (+ python-logilab-*) Jari Aalto
2016-06-07 10:07   ` [ACTION REQUIRED] ARCH=noarch uploads with cygport 0.22.0 Marco Atzeri
2016-06-07 13:58   ` Eric Blake
2016-06-07 15:14     ` Yaakov Selkowitz
2016-06-07 15:34       ` Eric Blake
2016-06-07 19:59   ` Achim Gratz
2016-06-07 21:30     ` Yaakov Selkowitz
2016-06-08 18:51     ` Achim Gratz
2016-06-10 14:11   ` Jon Turney
2016-07-08  5:21     ` Yaakov Selkowitz
2016-06-28 19:38 ` Dr. Volker Zell
2016-06-28 19:49   ` Dr. Volker Zell
2016-07-07  6:18     ` Yaakov Selkowitz
2019-06-14 15:36 ` Moving packages between arch and noarch Jon Turney
2019-06-18 17:53   ` Achim Gratz
2019-07-25 18:14     ` [GOLDSTAR] " Achim Gratz
2019-07-25 19:58       ` Andrew Schulman via cygwin-apps

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=928aad7a-a157-231c-1c42-6fc4db5b6a67@cygwin.com \
    --to=yselkowitz@cygwin.com \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).