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
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.
38 # gnome2.cygclass, gtkmm.cygclass, pygtk.cygclass
43 #****v* gnome.org.cygclass/GNOME_ORG_TARBALL_SUFFIX
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".
53 # This must be defined before inherit()ing gnome.org.cygclass.
55 if ! defined GNOME_ORG_TARBALL_SUFFIX
58 if wget -q --spider https://download.gnome.org/sources/${ORIG_PN:-${PN}}/${PVP[0]}.${PVP[1]}/${ORIG_PN:-${PN}}-${PV}.tar.bz2
60 GNOME_ORG_TARBALL_SUFFIX="bz2"
62 GNOME_ORG_TARBALL_SUFFIX="xz"
66 #****o* gnome.org.cygclass/HOMEPAGE (gnome.org)
68 HOMEPAGE="https://www.gnome.org/"
71 #****o* gnome.org.cygclass/SRC_URI (gnome.org)
73 SRC_URI="mirror://gnome/sources/${ORIG_PN:-${PN}}/${PVP[0]}.${PVP[1]}/${ORIG_PN:-${PN}}-${PV}.tar.${GNOME_ORG_TARBALL_SUFFIX}"
78 #****o* gnome.org.cygclass/GIT_URI (gnome.org)
80 # git.cygclass should be inherit()ed last for this to be of use.
82 GIT_URI="git://git.gnome.org/${ORIG_PN:-${PN}}"