Commit c9895f69 authored by Ryan Kavanagh's avatar Ryan Kavanagh

Initial Debian dir

parent c2747c6a
cronometer (0.9.7-1) unstable; urgency=low
* Initial release (Closes: #573500)
-- Ryan Kavanagh <ryanakca@kubuntu.org> Thu, 26 Aug 2010 22:04:52 -0400
Source: cronometer
Section: java
Priority: optional
Maintainer: Ryan Kavanagh <ryanakca@kubuntu.org>
Build-Depends: debhelper (>= 7.0.50~),
javahelper (>= 0.25)
Build-Depends-Indep: default-jdk,
ant,
libjfreechart-java,
libswingx-java
Standards-Version: 3.9.1
Homepage: http://spaz.ca/cronometer/
Package: cronometer
Architecture: all
Depends: ${java:Depends}, ${misc:Depends}
Recommends: ${java:Recommends}
Description: Nutrient intake tracker
Easy to use daily nutrient intake tracker that includes nutritional
information on over 8000 foods. User can create, import and export custom
foods and recipes as well as set personal targets for each nutrient.
CRON-O-Meter can also track and chart your biometrics (weight, blood pressure,
temperature, etc) and generate detailed reports on your nutritional intake.
This diff is collapsed.
#!/bin/sh
CLASSPATH="${CLASSPATH:-.}:/usr/share/java/jcommon.jar"
CLASSPATH="${CLASSPATH:-.}:/usr/share/java/jfreechart.jar"
CLASSPATH="${CLASSPATH:-.}:/usr/share/java/swingx.jar"
CLASSPATH="${CLASSPATH:-.}:/usr/share/cronometer/usda_sr22.jar"
CLASSPATH="${CLASSPATH:-.}:/usr/share/cronometer/crdb_004.jar"
CLASSPATH="${CLASSPATH:-.}:/usr/share/cronometer/docs.jar"
CLASSPATH="${CLASSPATH:-.}:/usr/share/java/cronometer.jar"
export CLASSPATH
exec /usr/bin/java ca.spaz.cron.CRONOMETER
usr/share/cronometer
[DEFAULT]
pristine-tar = True
# Options only affecting git-buildpackage
[git-buildpackage]
sign-tags = True
compression = bzip2
compression-level = best
# Options only affecting git-import-orig
[git-import-orig]
filter = .svn ._*java lib/cronometer.jar lib/docs.jar
filter-pristine-tar = True
lib/cronometer.jar usr/share/java/
lib/usda_sr22.jar usr/share/cronometer/
lib/crdb_004.jar usr/share/cronometer/
lib/docs.jar usr/share/cronometer/
debian/cronometer.sh usr/bin/
# Description: Don't generate Windows executables
# Author: Ryan Kavanagh <ryanakca@kubuntu.org>
Index: cronometer/build.xml
===================================================================
--- cronometer.orig/build.xml 2011-01-25 15:10:13.120292842 -0500
+++ cronometer/build.xml 2011-01-25 15:12:33.275278941 -0500
@@ -10,6 +10,7 @@
<property name="build" location="bin"/>
<property name="lib" location="lib"/>
+ <!-- Not needed in Debian
<taskdef name="launch4j"
classname="net.sf.launch4j.ant.Launch4jTask"
classpath="C:/Program Files/Launch4j/launch4j.jar
@@ -18,6 +19,7 @@
<taskdef name="exe4j"
classname="com.exe4j.Exe4JTask"
classpath="C:\Program Files\exe4j\bin\ant.jar"/>
+ -->
<!-- Compile the java code from ${src} into ${build} -->
<target name="compile" description="compile the source">
@@ -58,10 +60,12 @@
</jar>
</target>
+ <!-- Not needed in Debian
<target name="launcher" depends="cronometer.jar,docs.jar" description="generate the executable" >
<launch4j configFile="release/windows/launch4j.xml" />
<exe4j projectfile="release/windows/cronometer.exe4j"/>
</target>
+ -->
<target name="signalljars" depends="cronometer.jar,docs.jar" description="generate the signed jar package" >
<input message="Enter certificate password for signing:" addproperty="cert_pwd" />
# Description: Don't try to sign the jars
# Author: Ryan Kavanagh <ryanakca@kubuntu.org>
Index: cronometer/build.xml
===================================================================
--- cronometer.orig/build.xml 2011-01-25 15:11:59.688271654 -0500
+++ cronometer/build.xml 2011-01-25 15:12:24.716270672 -0500
@@ -67,6 +67,7 @@
</target>
-->
+ <!-- Don't sign in Debian
<target name="signalljars" depends="cronometer.jar,docs.jar" description="generate the signed jar package" >
<input message="Enter certificate password for signing:" addproperty="cert_pwd" />
@@ -84,6 +85,7 @@
<signjar jar="${lib}/docs.jar" keystore="release/jws" alias="spaz.ca" storepass="${cert_pwd}"/>
<signjar jar="${lib}/cronometer.jar" keystore="release/jws" alias="spaz.ca" storepass="${cert_pwd}"/>
</target>
+ -->
</project>
# Description: Use java 1.5, 1.4 causes a FTBFS
# Author: Ryan Kavanagh <ryanakca@kubuntu.org>
Index: cronometer/build.xml
===================================================================
--- cronometer.orig/build.xml 2011-01-25 15:15:20.127274526 -0500
+++ cronometer/build.xml 2011-01-25 15:15:26.755692719 -0500
@@ -23,7 +23,7 @@
<!-- Compile the java code from ${src} into ${build} -->
<target name="compile" description="compile the source">
- <javac source="1.4" srcdir="${source}" destdir="${build}">
+ <javac source="1.5" srcdir="${source}" destdir="${build}">
<classpath>
<fileset dir="${build}/lib">
<include name="*.jar"/>
# Description: Add a clean target
# Author: Ryan Kavanagh <ryanakca@kubuntu.org>
Index: cronometer/build.xml
===================================================================
--- cronometer.orig/build.xml 2011-02-02 14:58:44.613824122 -0500
+++ cronometer/build.xml 2011-02-02 15:04:53.008818810 -0500
@@ -60,6 +60,12 @@
</jar>
</target>
+ <target name="clean" description="clean generated files" >
+ <delete dir="bin" />
+ <delete file="lib/cronometer.jar" />
+ <delete file="lib/docs.jar" />
+ </target>
+
<!-- Not needed in Debian
<target name="launcher" depends="cronometer.jar,docs.jar" description="generate the executable" >
<launch4j configFile="release/windows/launch4j.xml" />
Index: cronometer/src/ca/spaz/cron/CRONOMETER.java
===================================================================
--- cronometer.orig/src/ca/spaz/cron/CRONOMETER.java 2011-05-31 14:14:15.221032770 -0400
+++ cronometer/src/ca/spaz/cron/CRONOMETER.java 2011-05-31 14:16:48.433792510 -0400
@@ -443,6 +443,8 @@
public void run() {
ToolBox.sleep(1000);
Datasources.initialize(this);
+ // We never want to check for updates on Debian
+ /*
if (UserManager.getUserManager().getCheckForUpdates()) {
Thread t = new Thread( new Runnable() {
public void run() {
@@ -450,7 +452,7 @@
}
});
t.start();
- }
+ }*/
}
Index: cronometer/src/ca/spaz/cron/user/UserManager.java
===================================================================
--- cronometer.orig/src/ca/spaz/cron/user/UserManager.java 2011-02-25 10:50:07.000000000 -0500
+++ cronometer/src/ca/spaz/cron/user/UserManager.java 2011-05-31 14:16:48.437792526 -0400
@@ -373,12 +373,17 @@
}
public void setCheckForUpdates(boolean val) {
- settings.set(CHECK_FOR_UDAPTES, val);
+ /* We don't want our users ever enabling this feature and screwing up
+ * their system. Always leave as false. */
+ settings.set(CHECK_FOR_UDAPTES, false);
notifyUserChangeListeners();
}
public boolean getCheckForUpdates() {
- return settings.getBoolean(CHECK_FOR_UDAPTES, true);
+ /* Never return true, we don't want users to manually upgrade cronometer
+ * unless they know what they're doing. */
+ //return settings.getBoolean(CHECK_FOR_UDAPTES, true);
+ return false;
}
public void setHideWhenMinimized(boolean state) {
01_no_mswin_taskdefs.diff
02_no_signed_jars.diff
03_use_java_1.5.diff
04_add_clean_target.diff
05_dont_check_for_updates.diff
#!/usr/bin/make -f
JAVA_HOME=/usr/lib/jvm/default-java
export CLASSPATH=/usr/share/java/jfreechart.jar:/usr/share/java/swingx.jar
%:
dh --with javahelper $@
override_dh_auto_build:
mkdir -p bin/lib
cp -a src/img bin/
cp -a src/docs bin/
cp src/menubar.xml src/nutrients.xml bin/
ant docs.jar
cp lib/*.jar bin/lib
dh_auto_build
override_dh_auto_clean:
dh_auto_clean
version=3
http://sf.net/cronometer/CRONoMeter-(.+)\-+.+\.zip
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment