summaryrefslogtreecommitdiff
path: root/ct2n/UnpackedTarball_ct2n.mk
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2012-10-20 10:05:45 -0700
committerMichael Stahl <mstahl@redhat.com>2012-10-23 19:11:01 +0200
commit97d83c45faf42ada9993239c3835641d8bbd070f (patch)
tree53f22ad112377f11e0fa872ac148f37361d6b395 /ct2n/UnpackedTarball_ct2n.mk
parent5e9a7f1919663d22cb568b1afdc018ef6be0cc91 (diff)
gbuildification of ct2n
Conflicts: config_host.mk.in Change-Id: I98ca1bb2af19d99a7a908991cf27a148ee84c543
Diffstat (limited to 'ct2n/UnpackedTarball_ct2n.mk')
-rw-r--r--ct2n/UnpackedTarball_ct2n.mk33
1 files changed, 33 insertions, 0 deletions
diff --git a/ct2n/UnpackedTarball_ct2n.mk b/ct2n/UnpackedTarball_ct2n.mk
new file mode 100644
index 000000000000..7239d8ac969a
--- /dev/null
+++ b/ct2n/UnpackedTarball_ct2n.mk
@@ -0,0 +1,33 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_UnpackedTarball_UnpackedTarball,ConvertTextToNumber))
+
+$(eval $(call gb_UnpackedTarball_set_tarball,ConvertTextToNumber,$(CT2N_TARBALL),0))
+
+# Extension class requires description-en-US.txt file
+$(eval $(call gb_UnpackedTarball_add_file,ConvertTextToNumber,\
+ description-en-US.txt,ct2n/description-en-US.txt))
+
+$(eval $(call gb_UnpackedTarball_add_patches,ConvertTextToNumber,\
+ ct2n/ConvertTextToNumber-1.3.2-no-license.patch \
+ ct2n/ConvertTextToNumber-1.3.2-no-visible-by-default.patch \
+))
+
+# adjustments for using Extension class
+# 1. manifest.xml is expected in root directory
+# 2. LICENSE file is required, reuse existing COPYING
+$(eval $(call gb_UnpackedTarball_set_post_action,ConvertTextToNumber,\
+ mv $(call gb_UnpackedTarball_get_dir,ConvertTextToNumber)/META-INF/manifest.xml \
+ $(call gb_UnpackedTarball_get_dir,ConvertTextToNumber) && \
+ mv $(call gb_UnpackedTarball_get_dir,ConvertTextToNumber)/registration/COPYING \
+ $(call gb_UnpackedTarball_get_dir,ConvertTextToNumber)/registration/LICENSE \
+))
+
+# vim: set noet sw=4 ts=4: