blob: 0fbad2bae4023c776d4e5eb07a39cdc694467775 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
|
name: git-ubuntu
version: git
summary: Ubuntu development git tooling
description: Maintain an Ubuntu source package in a git tree
confinement: classic
grade: stable
environment:
CORE_SNAP: "/snap/core/current"
CORE_SNAP_PATH: "$CORE_SNAP/usr/local/sbin:$CORE_SNAP/usr/local/bin:$CORE_SNAP/usr/sbin:$CORE_SNAP/usr/bin:$CORE_SNAP/sbin:$CORE_SNAP/bin"
PERL5LIB: "$SNAP/usr/share/perl5:$SNAP/usr/share/perl/5.22"
DPKG_DATADIR: "$SNAP/usr/share/dpkg"
GIT_EXEC_PATH: "$SNAP/libexec/git-core"
GIT_TEMPLATE_DIR: "$SNAP/share/git-core/templates"
apps:
git-ubuntu:
command: bin/git-ubuntu
environment:
ORIG_PATH: "$PATH"
PYTHONPATH: "$SNAP/lib/python3.6/site-packages"
PATH: "$SNAP/usr/local/sbin:$SNAP/usr/local/bin:$SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$CORE_SNAP_PATH"
man:
command: wrappers/git-ubuntu-man
environment:
LD_LIBRARY_PATH: "$SNAP/usr/lib/man-db:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu"
PATH: "$SNAP/usr/local/sbin:$SNAP/usr/local/bin:$SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$CORE_SNAP_PATH"
reconstruct-changelog:
command: wrappers/git-reconstruct-changelog
environment:
PATH: "$SNAP/usr/local/sbin:$SNAP/usr/local/bin:$SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$CORE_SNAP_PATH"
merge-changelogs:
command: wrappers/git-merge-changelogs
environment:
PATH: "$SNAP/usr/local/sbin:$SNAP/usr/local/bin:$SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$CORE_SNAP_PATH"
parts:
gbp:
plugin: python
python-version: python3
source: https://github.com/nacc/git-buildpackage.git
source-type: git
source-branch: master-fix-tilde # want to use a tagged release once available
requirements: requirements.txt
stage:
- -usr/bin/py*
- -usr/bin/2to3*
- -usr/share/*python*
- -usr/lib/python3.5
- -usr/lib/python3.6
after: [git, pristine-tar, python3]
git:
plugin: autotools
# want to use an upstream release of 2.14.2 or later, once available
source: https://github.com/nacc/git/archive/v2.14.1_nacc_fixes.tar.gz
source-type: tar
build-packages:
- libz-dev
- gettext
- libpcre3-dev
- libcurl4-gnutls-dev
- libexpat1-dev
- libyaml-perl
- tcl
- libhttp-date-perl
- libcgi-pm-perl
- libdbd-sqlite3-perl
- unzip
- libio-pty-perl
dpkg:
plugin: autotools
source: https://anonscm.debian.org/git/dpkg/dpkg.git
source-type: git
source-tag: '1.18.24'
configflags:
- --prefix=/usr
- --sysconfdir=/etc
- --sbindir=/sbinn
- --localstatedir=/var
- --libexecdir=${exec_prefix/lib}
build-packages:
- pkg-config
- libncursesw5-dev
xz-utils:
plugin: autotools
source: https://github.com/xz-mirror/xz/releases/download/v5.2.2/xz-5.2.2.tar.xz
source-type: tar
configflags: [--prefix=/usr]
after: [dpkg]
tar:
plugin: x-tar
source: https://ftp.gnu.org/gnu/tar/tar-1.29.tar.xz
source-type: tar
after: [xz-utils]
xdelta:
plugin: autotools
source: https://anonscm.debian.org/git/users/lamont/xdelta.git
source-type: git
source-tag: 'v1.1.3-9'
build-packages:
- libtool-bin
- libglib2.0-dev
- zlib1g-dev
xdelta3:
plugin: autotools
source: https://github.com/jmacd/xdelta/archive/v3.0.11.tar.gz
source-type: tar
build: |
cd xdelta3
./run_release.sh || true
./run_release.sh || true
autoreconf
./configure --prefix=$SNAPCRAFT_PART_INSTALL/usr
make
install: |
cd xdelta3
make install
pristine-tar:
plugin: make
source: https://anonscm.debian.org/cgit/collab-maint/pristine-tar.git
source-type: git
source-tag: '1.41'
prepare: |
perl Makefile.PL PREFIX=/usr
after: [git, tar, xdelta3]
oauth:
plugin: python
python-version: python3
source: snap/oauth
stage:
- -usr/bin/py*
- -usr/bin/2to3*
- -usr/share/*python*
- -usr/lib/python3.5
- -usr/lib/python3.6
after: [python3]
launchpadlib:
plugin: python
python-version: python3
source: https://github.com/nacc/launchpadlib.git
source-type: git
source-branch: master
stage:
- -usr/bin/py*
- -usr/bin/2to3*
- -usr/share/*python*
- -lib/python3.6/site-packages/oauth*
- -usr/lib/python3.5
- -usr/lib/python3.6
after: [python3]
python2:
source: http://www.python.org/ftp/python/2.7.14/Python-2.7.14.tar.xz
source-type: tar
plugin: autotools
configflags: [--prefix=/usr]
build-packages:
- libssl-dev
- libsqlite3-dev
stage:
- -usr/bin/2to3*
- -usr/lib/python2.7/test
# need it at runtime, but want to build it using the stage
# packages
after: [ubuntutools-python2]
python3:
source: http://www.python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz
source-type: tar
plugin: autotools
configflags: [--prefix=/usr]
build-packages:
- libssl-dev
- libsqlite3-dev
stage:
- -usr/lib/python3.6/test
ubuntutools-python2:
plugin: python
python-version: python2
source: https://git.launchpad.net/ubuntu-dev-tools
source-type: git
source-tag: '0.161'
stage:
- -usr/bin/py*
- -usr/bin/2to3*
- -usr/share/*python*
- -lib/python2.7/site-packages/oauth*
- -usr/lib/python2.7
ubuntutools-python3:
plugin: python
python-version: python3
source: https://git.launchpad.net/ubuntu-dev-tools
source-type: git
source-tag: '0.161'
stage:
- -usr/bin/py*
- -usr/bin/2to3*
- -usr/share/*python*
- -lib/python3.5/site-packages/oauth*
- -lib/python3.6/site-packages/oauth*
- -usr/lib/python3.5
- -usr/lib/python3.6
after: [python3]
distro-info:
plugin: python
python-version: python3
source: https://anonscm.debian.org/git/collab-maint/distro-info.git
source-tag: 'debian/0.17'
source-subdir: python
stage:
- -usr/bin/py*
- -usr/bin/2to3*
- -usr/share/*python*
- -usr/lib/python3.5
- -usr/lib/python3.6
stage-packages:
- distro-info
after: [python3]
devscripts:
plugin: nil
stage-packages:
- devscripts
stage:
- -usr/share/perl5/Dpkg*
- -usr/bin/dpkg*
- -usr/share/dpkg
- -usr/bin/py*
- -usr/bin/2to3*
- -usr/share/*python*
- -usr/lib/python3.5
- -usr/lib/python3.6
- -usr/bin/lzmainfo
- -usr/bin/xz
- -usr/bin/xzdiff
- -usr/bin/xzgrep
- -usr/bin/xzless
- -usr/bin/xzmore
git-ubuntu:
plugin: python
python-version: python3
source: .
stage-packages:
- fakeroot
- libffi-dev
- libssl-dev
- libgit2-dev
- libssh2-1-dev
- sendmail-bin
- quilt
- man-db
- pbzip2
- bzip2
stage:
- -usr/bin/py*
- -usr/bin/2to3*
- -usr/share/*python*
- -lib/python3.6/site-packages/oauth*
- -lib/python3.6/site-packages/launchpadlib*
- -usr/lib/python3.6
prime:
- -usr/share/doc
install: |
cp $SNAPCRAFT_PART_INSTALL/usr/bin/fakeroot-sysv $SNAPCRAFT_PART_INSTALL/usr/bin/fakeroot
after:
- gbp
- pristine-tar
- oauth
- distro-info
- ubuntutools-python2
- ubuntutools-python3
- python3
- devscripts
wrappers:
source: snap/
plugin: dump
organize:
wrappers/gbp: usr/local/bin/gbp
wrappers/quilt: usr/local/bin/quilt
manpages:
source: man/
plugin: dump
organize:
man1: usr/share/man/man1
completion:
source: doc/
plugin: dump
organize:
gitubuntu-completion.sh: etc/bash_completion.d/git-ubuntu
scripts:
source: bin/
plugin: dump
organize:
git-reconstruct-changelog: bin/git-reconstruct-changelog
git-merge-changelogs: bin/git-merge-changelogs
|