Akosiaris has submitted this change and it was merged. Change subject: Initial debian build ......................................................................
Initial debian build Change-Id: Ieb04d5602ab7463e1713a92774964c10291c6b6d --- A debian/README.Debian A debian/bin/buck A debian/buck.1 A debian/changelog A debian/compat A debian/control A debian/copyright A debian/dirs A debian/docs A debian/gbp.conf A debian/install A debian/manifest A debian/manpages A debian/patches/0001-do-not-include-jar-files-in-the-jar.patch A debian/patches/series A debian/rules A debian/source/format A debian/source/options 18 files changed, 202 insertions(+), 0 deletions(-) Approvals: Demon: Verified Akosiaris: Verified; Looks good to me, approved diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..1848696 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,6 @@ +buck for Debian +--------------- + +Not installing "daemon" + + -- Carl Fürstenberg <azat...@gmail.com> Mon, 10 Jun 2013 23:31:59 +0200 diff --git a/debian/bin/buck b/debian/bin/buck new file mode 100755 index 0000000..19b5625 --- /dev/null +++ b/debian/bin/buck @@ -0,0 +1,19 @@ +#!/bin/bash + +SYSTEM_JAVA_PATH="/usr/share/java" +SHARE_DIR=/usr/share/buck +ETC_DIR=/etc/buck +JAVA_CMD="/usr/bin/java" + +BUCK_JAVA_ARGS=( +-XX:MaxPermSize=256m +-Xmx1000m +-Djava.awt.headless=true +-Dbuck.path_to_buck_py=$SHARE_DIR/buck.py +-Dbuck.path_to_intellij_py=$SHARE_DIR/intellij.py +-Dlog4j.configuration=$ETC_DIR/log4j.properties +-Dbuck.version_uid=0.0 +-Dbuck.daemon=false +) + +$JAVA_CMD ${BUCK_JAVA_ARGS[@]} -jar /usr/share/buck/buck.jar "$@" diff --git a/debian/buck.1 b/debian/buck.1 new file mode 100644 index 0000000..177b3ff --- /dev/null +++ b/debian/buck.1 @@ -0,0 +1,49 @@ +.TH BUCK "1" "June 2013" "buck version 0.0" "User Commands" +.SH NAME +buck \- yet another build system from facebook +.SH SYNOPSIS +.PP +\fBbuck\fR [options] +.PP +\fBbuck\fR command --help +.PP +\fBbuck\fR command [command\-options] +.SH DESCRIPTION +Buck is an Android build tool. +.PP +To see what Buck can do for you, +check out the documentation at +.UR http://\:facebook.github.io/\:buck/ +.UE . +.SH COMMANDS +.TP +audit +lists the inputs for the specified target +.TP +build +builds the specified target +.TP +clean +deletes any generated files +.TP +install +builds and installs an APK +.TP +project +generates project configuration files for an IDE +.TP +targets +prints the list of buildable targets +.TP +test +builds and runs the tests for the specified target +.TP +uninstall +uninstalls an APK +.SH OPTIONS +.TP +\fB\-\-help\fR +Shows some help +.TP +\fB\-\-version\fR (\fB\-V\fR) +Show version number. diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..74ed6a9 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +buck (0+git20130612-0+wmf1) unstable; urgency=low + + * Initial release + + -- Carl Fürstenberg <azat...@gmail.com> Wed, 12 Jun 2013 17:05:20 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..1a8da6b --- /dev/null +++ b/debian/control @@ -0,0 +1,20 @@ +Source: buck +Section: utils +Priority: extra +Maintainer: Carl Fürstenberg <azat...@gmail.com> +Build-Depends: debhelper (>= 9.0), javahelper, openjdk-7-jdk, ant +Standards-Version: 3.9.3 + +Package: buck +Architecture: all +Depends: ${misc:Depends}, + libargs4j-java, + libcommons-cli-java, + libcommons-codec-java, + libcommons-lang-java, + libini4j-java, + libjsr305-java, + liblog4j1.2-java +Description: Build system for Android + encourages the creation of small, reusable modules + consisting of code and resources. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..8451f50 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,26 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: buck + +Files: * +Copyright: 2012 Facebook inc. +License: Apache-2.0 + +Files: debian/* +Copyright: 2013 Carl Fürstenberg <azat...@gmail.com> +License: Apache-2.0 + +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian systems, the complete text of the Apache version 2.0 license + can be found in "/usr/share/common-licenses/Apache-2.0". diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..6b3cdff --- /dev/null +++ b/debian/dirs @@ -0,0 +1,3 @@ +/usr/share/buck +/usr/share/buck/jars +/etc/buck diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..eff4f4b --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,4 @@ +[DEFAULT] +pristine-tar = False +upstream-branch=upstream-google +upstream-tree=branch diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..539dc99 --- /dev/null +++ b/debian/install @@ -0,0 +1,15 @@ +build/buck.jar /usr/share/buck + +lib/guava-14.0.1.jar /usr/share/buck/jars +lib/jyson-1.0.2.jar /usr/share/buck/jars +lib/jython-standalone-2.5.3.jar /usr/share/buck/jars +lib/jackson-core-2.0.5.jar /usr/share/buck/jars + + +third-party/java/astyanax/astyanax-cassandra-1.56.38.jar /usr/share/buck/jars +third-party/java/astyanax/astyanax-core-1.56.38.jar /usr/share/buck/jars + +src/com/facebook/buck/command/intellij.py /usr/share/buck +src/com/facebook/buck/parser/buck.py /usr/share/buck +config/log4j.properties /etc/buck +debian/bin/buck /usr/bin diff --git a/debian/manifest b/debian/manifest new file mode 100644 index 0000000..9140fa0 --- /dev/null +++ b/debian/manifest @@ -0,0 +1,16 @@ +usr/share/buck/buck.jar: + Class-Path: + /usr/share/java/args4j.jar + /usr/share/java/ini4j.jar + /usr/share/java/jsr305.jar + /usr/share/java/commons-cli.jar + /usr/share/java/commons-codec.jar + /usr/share/java/commons-lang.jar + /usr/share/java/log4j-1.2.jar + /usr/share/buck/jars/jackson-core-2.0.5.jar + /usr/share/buck/jars/jython-standalone-2.5.3.jar + /usr/share/buck/jars/guava-14.0.1.jar + /usr/share/buck/jars/jyson-1.0.2.jar + /usr/share/buck/jars/astyanax-cassandra-1.56.38.jar + /usr/share/buck/jars/astyanax-core-1.56.38.jar + Main-Class: com.facebook.buck.cli.Main diff --git a/debian/manpages b/debian/manpages new file mode 100644 index 0000000..2c27a4f --- /dev/null +++ b/debian/manpages @@ -0,0 +1 @@ +debian/buck.1 diff --git a/debian/patches/0001-do-not-include-jar-files-in-the-jar.patch b/debian/patches/0001-do-not-include-jar-files-in-the-jar.patch new file mode 100644 index 0000000..c5df474 --- /dev/null +++ b/debian/patches/0001-do-not-include-jar-files-in-the-jar.patch @@ -0,0 +1,21 @@ +From: =?UTF-8?q?Carl=20F=C3=BCrstenberg?= <azat...@gmail.com> +Date: Tue, 11 Jun 2013 01:45:10 +0200 +Subject: do not include jar files in the jar + +--- + build.xml | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/build.xml b/build.xml +index f9886a8..6815189 100644 +--- a/build.xml ++++ b/build.xml +@@ -113,8 +113,6 @@ + description="build buck.jar" + > + <jar destfile="${build.dir}/buck.jar" update="true"> +- <zipfileset refid="buck.jars" /> +- <zipfileset refid="third-party.jars" /> + <fileset dir="${src.dir}" + excludes="**/*.java, **/BUCK" + /> diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..4ca15fc --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-do-not-include-jar-files-in-the-jar.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..e11540c --- /dev/null +++ b/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DPKG_ARCH=$(shell dpkg-architecture -qDEB_BUILD_ARCH | cut -d- -f2) + +export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-$(DPKG_ARCH) + +%: + dh $@ --with javahelper diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/options b/debian/source/options new file mode 100644 index 0000000..2df3e3f --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +extend-diff-ignore = '^\.gitreview$' -- To view, visit https://gerrit.wikimedia.org/r/70673 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ieb04d5602ab7463e1713a92774964c10291c6b6d Gerrit-PatchSet: 1 Gerrit-Project: operations/debs/buck Gerrit-Branch: master Gerrit-Owner: AzaToth <azat...@gmail.com> Gerrit-Reviewer: Akosiaris <akosia...@wikimedia.org> Gerrit-Reviewer: Demon <ch...@wikimedia.org> Gerrit-Reviewer: Faidon <fai...@wikimedia.org> Gerrit-Reviewer: Hashar <has...@free.fr> Gerrit-Reviewer: QChris <christ...@quelltextlich.at> Gerrit-Reviewer: Ryan Lane <rl...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits