/[gentoo-x86]/eclass/obs-download.eclass
Gentoo

Diff of /eclass/obs-download.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.4
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/obs-download.eclass,v 1.1 2011/09/16 15:49:19 miska Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/obs-download.eclass,v 1.4 2012/10/02 10:57:52 scarabeus Exp $
4 4
5# @ECLASS: obs-download.eclass 5# @ECLASS: obs-download.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# miska@gentoo.org 7# suse@gentoo.org
8# @BLURB: Simplifies downloading from openSUSE Build Service. 8# @BLURB: Simplifies downloading from openSUSE Build Service.
9# @DESCRIPTION: 9# @DESCRIPTION:
10# This eclass constructs OBS_URI based on provided project in openSUSE Build 10# This eclass constructs OBS_URI based on provided project in openSUSE Build
11# Service and package name. It can be used by packages/eclasses to download 11# Service and package name. It can be used by packages/eclasses to download
12# actual files. 12# actual files.
19# release. 19# release.
20 20
21# @ECLASS-VARIABLE: OPENSUSE_RELEASE 21# @ECLASS-VARIABLE: OPENSUSE_RELEASE
22# @DEFAULT_UNSET 22# @DEFAULT_UNSET
23# @DESCRIPTION: 23# @DESCRIPTION:
24# From which stable openSUSE realease to take files. 24# From which openSUSE realease to take files.
25# Eg.: 12.1, 12.2, Factory
25 26
26# @ECLASS-VARIABLE: OBS_PROJECT 27# @ECLASS-VARIABLE: OBS_PROJECT
27# @DEFAULT_UNSET 28# @DEFAULT_UNSET
28# @DESCRIPTION: 29# @DESCRIPTION:
29# In which obs project pakage is. This variable don't have to be set, if 30# In which obs project pakage is.
31# This variable does not have to be set and is overriden, if
30# OPENSUSE_RELEASE is provided. 32# OPENSUSE_RELEASE is provided.
31 33
32# @ECLASS-VARIABLE: OBS_PACKAGE 34# @ECLASS-VARIABLE: OBS_PACKAGE
33# @REQUIRED
34# @DESCRIPTION: 35# @DESCRIPTION:
35# Name of the package we want to take files from. 36# Name of the package we want to take files from.
37# By default taken from ${PN}.
36 38
37[[ -z ${OPENSUSE_RELEASE} ]] || OBS_PROJECT="openSUSE:${OPENSUSE_RELEASE}" 39[[ -z ${OPENSUSE_RELEASE} ]] || OBS_PROJECT="openSUSE:${OPENSUSE_RELEASE}"
38[[ -n ${OBS_PROJECT} ]] || die "OBS_PROJECT not set!" 40[[ -n ${OBS_PROJECT} ]] || die "OBS_PROJECT not set!"
39[[ -n ${OBS_PACKAGE} ]] || die "OBS_PACKAGE not set!" 41[[ -n ${OBS_PACKAGE} ]] || OBS_PACKAGE="${PN}"
40 42
41OBS_URI="https://api.opensuse.org/public/source/${OBS_PROJECT}/${OBS_PACKAGE}" 43OBS_URI="https://api.opensuse.org/public/source/${OBS_PROJECT}/${OBS_PACKAGE}"

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20