Bump version to 0.36.9
[cygport.git] / cygclass / gnome.org.cygclass
blobd7018f5b5fa94f5325f0cf0b13e02b020480fdc0
1 ################################################################################
3 # gnome.org.cygclass - sets SRC_URI for ftp.gnome.org packages
5 # Part of cygport - Cygwin packaging application
6 # Copyright (C) 2006-2020 Cygport authors
7 # Provided by the Cygwin project <https://cygwin.com/>
9 # cygport is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
14 # cygport is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with cygport.  If not, see <https://www.gnu.org/licenses/>.
22 ################################################################################
24 #****h* Cygclasses/gnome.org.cygclass
25 #  SYNOPSIS
26 #  inherit gnome.org
27 #  DESCRIPTION
28 #  This cygclass is to be used for packages which are part of GNOME
29 #  or which are hosted on GNOME FTP or Git servers.
31 #  In most cases, you do not need to directly inherit this cygclass;
32 #  most GNOME packages will anyway use one of the cygclasses listed below
33 #  which already inherit this cygclass.
35 #  If PN does not match the name of the original source tarball,
36 #  define ORIG_PN before inherit()ing.
37 #  INHERITED BY
38 #  gnome2.cygclass, gtkmm.cygclass, pygtk.cygclass
39 #  SEE ALSO
40 #  mirror_gnome
41 #****
43 #****v* gnome.org.cygclass/GNOME_ORG_TARBALL_SUFFIX
44 #  DESCRIPTION
45 #  The compression format for tarballs on gnome.org.  Until December 2011,
46 #  almost all sources were available with at least bz2 compression, but from
47 #  that point on, only xz-compressed tarballs are being published.
49 #  If undefined, the server is checked to find which type of tarball exists.
50 #  This variable can be set to avoid the server check, or if the extension
51 #  is neither "bz2" nor "xz".
52 #  NOTE
53 #  This must be defined before inherit()ing gnome.org.cygclass.
54 #****
55 if ! defined GNOME_ORG_TARBALL_SUFFIX
56 then
57         check_prog_req wget
58         if wget -q --spider https://download.gnome.org/sources/${ORIG_PN:-${PN}}/${PVP[0]}.${PVP[1]}/${ORIG_PN:-${PN}}-${PV}.tar.bz2
59         then
60                 GNOME_ORG_TARBALL_SUFFIX="bz2"
61         else
62                 GNOME_ORG_TARBALL_SUFFIX="xz"
63         fi
66 #****o* gnome.org.cygclass/HOMEPAGE (gnome.org)
67 #  DEFINITION
68 HOMEPAGE="https://www.gnome.org/"
69 #****
71 #****o* gnome.org.cygclass/SRC_URI (gnome.org)
72 #  DEFINITION
73 SRC_URI="mirror://gnome/sources/${ORIG_PN:-${PN}}/${PVP[0]}.${PVP[1]}/${ORIG_PN:-${PN}}-${PV}.tar.${GNOME_ORG_TARBALL_SUFFIX}"
74 #****
76 if ! defined GIT_URI
77 then
78 #****o* gnome.org.cygclass/GIT_URI (gnome.org)
79 #  NOTE
80 #  git.cygclass should be inherit()ed last for this to be of use.
81 #  DEFINITION
82 GIT_URI="git://git.gnome.org/${ORIG_PN:-${PN}}"
83 #****