Gentoo Archives: gentoo-commits

From: "Ben de Groot (yngwin)" <yngwin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-i18n/rime-data/files: Makefile
Date: Sat, 01 Sep 2012 10:46:32
Message-Id: 20120901104622.0174820E96@flycatcher.gentoo.org
1 yngwin 12/09/01 10:46:21
2
3 Added: Makefile
4 Log:
5 Initial commit. Ebuild from gentoo-zh overlay, polished by dlan and me.
6
7 (Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 app-i18n/rime-data/files/Makefile
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/rime-data/files/Makefile?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/rime-data/files/Makefile?rev=1.1&content-type=text/plain
14
15 Index: Makefile
16 ===================================================================
17 ifeq (${SRCDIR},)
18 SRCDIR=$(shell pwd)
19 endif
20 DATA:=${SRCDIR}/data
21
22 ifeq (${PREFIX},)
23 PREFIX=/usr
24 endif
25 ifeq (${RIME_DATA_DIR},)
26 RIME_DATA_DIR=/share/rime-data
27 endif
28
29 all:
30 @echo "building rime data"
31 @mkdir -p ${DATA}
32 @cp default.yaml ${DATA}
33 @cp essay.kct ${DATA}
34 @cp supplement/*.yaml ${DATA}
35 @cp preset/*.yaml ${DATA}
36 rime_deployer --build ${DATA}
37
38 install:
39 @echo "installing rime data"
40 @install -d ${DESTDIR}${PREFIX}${RIME_DATA_DIR}
41 @install -m 644 ${DATA}/* ${DESTDIR}${PREFIX}${RIME_DATA_DIR}