From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 117971 invoked by alias); 11 May 2016 20:08:15 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 117954 invoked by uid 89); 11 May 2016 20:08:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=H*M:cygwin, H*Ad:U*yselkowitz, eng, H*F:U*yselkowitz X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 11 May 2016 20:08:04 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 44E2110B820 for ; Wed, 11 May 2016 20:08:02 +0000 (UTC) Received: from [10.10.116.22] (ovpn-116-22.rdu2.redhat.com [10.10.116.22]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u4BK80Ec023324 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 11 May 2016 16:08:01 -0400 Subject: Re: [ACTION REQUIRED] ARCH=noarch uploads with cygport 0.22.0 To: cygwin-apps@cygwin.com References: <9de6f042-3510-ef4c-9c2d-90f354244691@cygwin.com> <170e1dbc-dc99-bfe1-ab6e-6307a58a19af@cygwin.com> <99701470-3d7f-20c7-7b3a-02139bb936ab@gmail.com> From: Yaakov Selkowitz Message-ID: <928aad7a-a157-231c-1c42-6fc4db5b6a67@cygwin.com> Date: Wed, 11 May 2016 20:08:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <99701470-3d7f-20c7-7b3a-02139bb936ab@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-05/txt/msg00043.txt.bz2 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 /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