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

Diff of /eclass/obs-service.eclass

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

Revision 1.8 Revision 1.9
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2013 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-service.eclass,v 1.8 2012/11/15 20:06:34 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/obs-service.eclass,v 1.9 2013/01/31 09:26:42 scarabeus Exp $
4 4
5# @ECLASS: obs-service.eclass 5# @ECLASS: obs-service.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# suse@gentoo.org 7# suse@gentoo.org
8# @BLURB: Reduces code duplication in the Open Build Service services. 8# @BLURB: Reduces code duplication in the Open Build Service services.
60# As it aint versioned at all use arrows to deal with it 60# As it aint versioned at all use arrows to deal with it
61SRC_URI="${OBS_URI}/${OBS_SERVICE_NAME} -> ${OBS_SERVICE_NAME}-${PV}" 61SRC_URI="${OBS_URI}/${OBS_SERVICE_NAME} -> ${OBS_SERVICE_NAME}-${PV}"
62SRC_URI+=" ${OBS_URI}/${OBS_SERVICE_NAME}.service -> ${OBS_SERVICE_NAME}-${PV}.service" 62SRC_URI+=" ${OBS_URI}/${OBS_SERVICE_NAME}.service -> ${OBS_SERVICE_NAME}-${PV}.service"
63 63
64for i in ${ADDITIONAL_FILES}; do 64for i in ${ADDITIONAL_FILES}; do
65 SRC_URI+=" ${OBS_URI}/${i}" 65 SRC_URI+=" ${OBS_URI}/${i} -> ${i}-${PV}"
66done 66done
67 67
68# @FUNCTION: obs-service_src_unpack 68# @FUNCTION: obs-service_src_unpack
69# @DESCRIPTION: 69# @DESCRIPTION:
70# Just copy files. Files are not compressed. 70# Just copy files. Files are not compressed.
99 if [[ -n ${ADDITIONAL_FILES} ]]; then 99 if [[ -n ${ADDITIONAL_FILES} ]]; then
100 debug-print "Installing following additional files:" 100 debug-print "Installing following additional files:"
101 debug-print " ${ADDITIONAL_FILES}" 101 debug-print " ${ADDITIONAL_FILES}"
102 exeinto /usr/lib/obs/service/${OBS_SERVICE_NAME}.files 102 exeinto /usr/lib/obs/service/${OBS_SERVICE_NAME}.files
103 for i in ${ADDITIONAL_FILES}; do 103 for i in ${ADDITIONAL_FILES}; do
104 doexe "${S}"/${i} 104 newexe "${S}"/${i}-${PV} ${i}
105 done 105 done
106 fi 106 fi
107} 107}
108 108
109EXPORT_FUNCTIONS src_install src_prepare src_unpack 109EXPORT_FUNCTIONS src_install src_prepare src_unpack

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20