Merge pull request #54536 from vidbina/update-ganttproject-to-2.8.9

Update ganttproject-bin from 2.7.2 to 2.8.10
This commit is contained in:
Jörg Thalheim 2019-03-06 14:06:42 +00:00 committed by GitHub
commit 4cb5200edc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,13 @@
{ stdenv, fetchzip, makeDesktopItem, makeWrapper { stdenv, lib, fetchzip, makeDesktopItem, makeWrapper
, jre }: , jre
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "ganttproject-bin-${version}"; name = "ganttproject-bin-${version}";
version = "2.7.2"; version = "2.8.10";
src = let build = "r1954"; in fetchzip { src = let build = "r2364"; in fetchzip {
sha256 = "0l655w6n88j7klz56af8xkpiv1pwlkfl5x1d33sqv9dnyisyw2hc"; sha256 = "0cclgyqv4f9pjsdlh93cqvgbzrp8ajvrpc2xszs03sknqz2kdh7r";
url = "https://dl.ganttproject.biz/ganttproject-${version}/" url = "https://dl.ganttproject.biz/ganttproject-${version}/"
+ "ganttproject-${version}-${build}.zip"; + "ganttproject-${version}-${build}.zip";
}; };
@ -28,18 +29,21 @@ stdenv.mkDerivation rec {
categories = "Office;Application;"; categories = "Office;Application;";
}; };
javaOptions = [
"-Dawt.useSystemAAFontSettings=on"
];
in '' in ''
mkdir -pv "$out/share/ganttproject" mkdir -pv "$out/share/ganttproject"
cp -rv * "$out/share/ganttproject" cp -rv * "$out/share/ganttproject"
mkdir -pv "$out/bin" mkdir -pv "$out/bin"
wrapProgram "$out/share/ganttproject/ganttproject" \ wrapProgram "$out/share/ganttproject/ganttproject" \
--set JAVA_HOME "${jre}" --set JAVA_HOME "${jre}" \
--set _JAVA_OPTIONS "${builtins.toString javaOptions}"
mv -v "$out/share/ganttproject/ganttproject" "$out/bin" mv -v "$out/share/ganttproject/ganttproject" "$out/bin"
install -v -Dm644 \
plugins/net.sourceforge.ganttproject/data/resources/icons/ganttproject.png \
"$out/share/pixmaps/ganttproject.png"
cp -rv "${desktopItem}/share/applications" "$out/share" cp -rv "${desktopItem}/share/applications" "$out/share"
''; '';
@ -51,5 +55,6 @@ stdenv.mkDerivation rec {
# GPL3-compatible. See ${downloadPage} for detailed information. # GPL3-compatible. See ${downloadPage} for detailed information.
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = [ maintainers.vidbina ];
}; };
} }