summaryrefslogtreecommitdiff
blob: deaff105a3d810600e9d4777ac1c7525c88ef25c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# By eroen, 2013
# Distributed under the terms of the ISC licence
# $Header: $

EAPI=5

inherit eutils

DESCRIPTION="Blender NIF plugin"
HOMEPAGE="http://niftools.sourceforge.net/wiki/NifTools"
SRC_URI="mirror://sourceforge/niftools/${PN}/2.5.x/2.5.09/${P}.77b0815.tar.bz2"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

HDEPEND=""
LIBDEPEND=""
DEPEND="${LIBDEPEND}"
RDEPEND="${LIBDEPEND}
	>=dev-python/pyffi-2.2.0
	>=media-gfx/blender-2.62"
[[ ${EAPI} == *-hdepend ]] || DEPEND+=" ${HDEPEND}"

src_unpack() {
	mkdir "${S}"
	cd "${S}" || die
	default
}

src_install() {
	insinto /usr/share/blender/scripts/mesh
	doins scripts/mesh/mesh_niftools_weightsquash.py \
		scripts/mesh/mesh_niftools_hull.py \
		scripts/mesh/mesh_niftools_morphcopy.py

	insinto /usr/share/blender/scripts/import
	doins scripts/import/import_nif.py
	insinto /usr/share/blender/scripts
	doins scripts/import/import_nif.py
	insinto  /usr/share/blender/scripts/export
	doins scripts/export/export_nif.py
	insinto /usr/share/blender/scripts
	doins scripts/export/export_nif.py

	insinto /usr/share/blender/scripts/object
	doins scripts/object/object_niftools_set_bone_priority.py \
		scripts/object/object_niftools_save_bone_pose.py \
		scripts/object/object_niftools_load_bone_pose.py
	insinto /usr/share/blender/scripts/bpymodules
	doins scripts/bpymodules/nif_common.py \
		scripts/bpymodules/nif_test.py
	default
}