Codebase list haskell-shake / b3be0a3
haskell-shake: Remove html/jquery*.js and html/viz.js from upstream tarball. Colin Watson 9 years ago
6 changed file(s) with 28 addition(s) and 37 deletion(s). Raw diff Collapse all Expand all
0 haskell-shake (0.13.1-1) UNRELEASED; urgency=low
0 haskell-shake (0.13.1+dfsg-1) UNRELEASED; urgency=low
11
22 * Initial release. (Closes: #751785)
33
0 html/jquery*.js
1 html/viz.js
44 # Disable viz.js; it's hard to provide source for this
55 # see https://github.com/ndmitchell/shake/issues/100
66 # and https://github.com/ndmitchell/shake/commit/3613e6
7 Files-Excluded: html/viz.js
7 # Also disable jquery and jquery.flot as we're going to replace them using
8 # dh_linktree anyway.
9 Files-Excluded: html/jquery*.js html/viz.js js-src/*
810
911 Files: *
1012 Copyright: 2011-2014 Neil Mitchell
1113 License: BSD-3-clause
12
13 Files: js-src/jquery-*.js
14 Copyright: 2012 jQuery Foundation and other contributors
15 License: MIT
16
17 Files: js-src/flot-*.zip
18 Copyright: 2007-2013 IOLA and Ole Laursen
19 License: MIT
2014
2115 Files: debian/*
2216 Copyright: 2014 Colin Watson
5246 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
5347 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
5448 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55
56 License: MIT
57 Permission is hereby granted, free of charge, to any person obtaining
58 a copy of this software and associated documentation files (the
59 "Software"), to deal in the Software without restriction, including
60 without limitation the rights to use, copy, modify, merge, publish,
61 distribute, sublicense, and/or sell copies of the Software, and to
62 permit persons to whom the Software is furnished to do so, subject to
63 the following conditions:
64 .
65 The above copyright notice and this permission notice shall be
66 included in all copies or substantial portions of the Software.
67 .
68 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
69 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
70 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
71 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
72 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
73 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
74 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00 #!/usr/bin/make -f
11
2 DEB_UPSTREAM_URL = http://hackage.haskell.org/package/shake-$(DEB_UPSTREAM_TARBALL_VERSION)
3 DEB_UPSTREAM_PACKAGE := shake
4 DEB_UPSTREAM_REPACKAGE_EXCLUDES := ./html/jquery*.js ./html/viz.js ./js-src/
5 DEB_UPSTREAM_REPACKAGE_DELIMITER := +
26 DEB_SETUP_GHC_CONFIGURE_ARGS := --datasubdir=/usr/share/shake
37 DEB_ENABLE_TESTS := yes
48 DEB_GHC_EXTRA_PACKAGES := libghc-shake-data (>= $(CABAL_VERSION))
59
610 include /usr/share/cdbs/1/rules/debhelper.mk
11 include /usr/share/cdbs/1/rules/upstream-tarball.mk
712 include /usr/share/cdbs/1/class/hlibrary.mk
13
14 html/jquery.js: /usr/share/javascript/jquery/jquery.js
15 ln -sf $< $@
16
17 html/jquery.flot.js: /usr/share/javascript/jquery-flot/jquery.flot.js
18 ln -sf $< $@
19
20 html/jquery.flot.stack.js: /usr/share/javascript/jquery-flot/jquery.flot.stack.js
21 ln -sf $< $@
22
23 html/viz.js:
24 touch $@
25
26 # Create versions of the files we stripped from the upstream tarball that
27 # are good enough to pass tests.
28 check-ghc-stamp: html/jquery.js html/jquery.flot.js html/jquery.flot.stack.js html/viz.js
829
930 install/libghc-shake-data:: debian/tmp-inst-ghc
1031 mv debian/tmp-inst-ghc/usr/share/shake debian/libghc-shake-data/usr/share
1132
1233 binary-post-install/libghc-shake-data::
1334 dh_linktree -p$(cdbs_curpkg)
14
15 # darcs can't version symlinks, so add this here.
16 clean::
17 ln -sf ../../js-src/jquery-1.8.3.js debian/missing-sources/jquery.js
+0
-3
p/haskell-shake/debian/source/lintian-overrides less more
0 # The source for these files is in js-src/flot-0.8.0.zip.
1 haskell-shake source: source-is-missing html/jquery.flot.js
2 haskell-shake source: source-is-missing html/jquery.flot.stack.js
00 version=3
1 opts=dversionmangle=s/\+dfsg// \
12 http://hackage.haskell.org/package/shake/distro-monitor .*-([0-9\.]+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))